diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-05-13 16:52:14 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-05-13 16:55:00 -0700 |
commit | 8eb34c50b997ff74e8b4bfb27abcbd03910c81b3 (patch) | |
tree | 47a0a6b71cbbafdf67c5aaed9391e117e1a8dbb0 /tensorflow/tools/graph_transforms | |
parent | 13980cc155d514eaa0a620b39d1396616a392775 (diff) |
ClangTidy - Legacy cleanup:
* use nullptr
* converting integer literal to bool, use bool literal instead
* annotate this function with 'override' or (rarely) 'final'
* prefer using 'override' or (rarely) 'final' instead of 'virtual'
PiperOrigin-RevId: 196441181
Diffstat (limited to 'tensorflow/tools/graph_transforms')
-rw-r--r-- | tensorflow/tools/graph_transforms/transform_graph.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/tools/graph_transforms/transform_graph.cc b/tensorflow/tools/graph_transforms/transform_graph.cc index 3b9dd3dd2d..5cae8f8d8f 100644 --- a/tensorflow/tools/graph_transforms/transform_graph.cc +++ b/tensorflow/tools/graph_transforms/transform_graph.cc @@ -141,7 +141,7 @@ std::string ExpandPath(const std::string& path_string) { return path_string; } - const char* home = NULL; + const char* home = nullptr; std::string::size_type prefix = path_string.find_first_of('/'); if (path_string.length() == 1 || prefix == 1) { // The value of $HOME, e.g., ~/foo |