summaryrefslogtreecommitdiffstats
path: root/base/logging.cpp
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-03-19 13:24:26 -0700
committerDan Albert <danalbert@google.com>2015-03-23 10:23:11 -0700
commit47328c96d91ca71b57b8976df2df1fe51579a955 (patch)
tree149e519906cb870b960e7e48facd7222a7ec7232 /base/logging.cpp
parentd69a1c502e11d3be052d9c0bb20f0c7762428925 (diff)
downloadsystem_core-47328c96d91ca71b57b8976df2df1fe51579a955.zip
system_core-47328c96d91ca71b57b8976df2df1fe51579a955.tar.gz
system_core-47328c96d91ca71b57b8976df2df1fe51579a955.tar.bz2
Update string Split API.
Return a new vector rather than appending to the parameter. Delimiters are also a string rather than a character. Split on any character in the string. Change-Id: I039b332ace5578590df9e7ca0e8fa3db28db30a3
Diffstat (limited to 'base/logging.cpp')
-rw-r--r--base/logging.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/base/logging.cpp b/base/logging.cpp
index 3d6c0c2..5b70c7d 100644
--- a/base/logging.cpp
+++ b/base/logging.cpp
@@ -108,8 +108,7 @@ void InitLogging(char* argv[]) {
return;
}
- std::vector<std::string> specs;
- Split(tags, ' ', &specs);
+ std::vector<std::string> specs = Split(tags, " ");
for (size_t i = 0; i < specs.size(); ++i) {
// "tag-pattern:[vdiwefs]"
std::string spec(specs[i]);