code cleanup: dont set the namespace in STR_String.h - 'using namespace std', since this is included in many places.

This commit is contained in:
Campbell Barton
2012-02-23 02:36:30 +00:00
parent c8b53d2aaf
commit 190f5d1787
8 changed files with 23 additions and 17 deletions

View File

@@ -699,23 +699,19 @@ rcSTR_String STR_String::Concat(const char *data, int len)
}
vector<STR_String> STR_String::Explode(char c) const
std::vector<STR_String> STR_String::Explode(char c) const
{
STR_String lcv = *this;
vector<STR_String> uc;
STR_String lcv = *this;
std::vector<STR_String> uc;
while (lcv.Length())
{
int pos = lcv.Find(c);
if (pos < 0)
{
if (pos < 0) {
uc.push_back(lcv);
lcv.Clear();
} else
{
}
else {
uc.push_back(lcv.Left(pos));
lcv = lcv.Mid(pos+1);
}