diff options
author | Eric Holk <eholk@google.com> | 2018-12-13 13:23:43 -0800 |
---|---|---|
committer | Eric Holk <eholk@google.com> | 2019-01-02 18:02:31 +0000 |
commit | ddc8990f0960d35bb525cceb671a95519a07c5ba (patch) | |
tree | 6ea15f7e4bb76a9aab4a963315d97d06d7c80bc2 /startop/view_compiler/util.cc | |
parent | abe06f91380ebd2fea7da80bba4ce756744e7aec (diff) |
[view-compiler] Better namespacing of util functions
This moves some helper functions into our own namespace to avoid conflicting
with other util.h files.
Bug: 111895153
Change-Id: I2b4c77732a97b34a8528d69867c15ed802686703
Diffstat (limited to 'startop/view_compiler/util.cc')
-rw-r--r-- | startop/view_compiler/util.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/startop/view_compiler/util.cc b/startop/view_compiler/util.cc index 69df41dff3d7..a0637e6da32f 100644 --- a/startop/view_compiler/util.cc +++ b/startop/view_compiler/util.cc @@ -18,6 +18,9 @@ using std::string; +namespace startop { +namespace util { + // TODO: see if we can borrow this from somewhere else, like aapt2. string FindLayoutNameFromFilename(const string& filename) { size_t start = filename.rfind("/"); @@ -30,3 +33,6 @@ string FindLayoutNameFromFilename(const string& filename) { return filename.substr(start, end - start); } + +} // namespace util +} // namespace startop |