Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/freestyle/intern/system/StringUtils.cpp')
-rw-r--r--source/blender/freestyle/intern/system/StringUtils.cpp40
1 files changed, 19 insertions, 21 deletions
diff --git a/source/blender/freestyle/intern/system/StringUtils.cpp b/source/blender/freestyle/intern/system/StringUtils.cpp
index e8c3dad5d85..027491a790f 100644
--- a/source/blender/freestyle/intern/system/StringUtils.cpp
+++ b/source/blender/freestyle/intern/system/StringUtils.cpp
@@ -28,35 +28,33 @@ namespace Freestyle {
namespace StringUtils {
-void getPathName(const string& path, const string& base, vector<string>& pathnames)
+void getPathName(const string &path, const string &base, vector<string> &pathnames)
{
- string dir;
- string res;
- char cleaned[FILE_MAX];
- unsigned size = path.size();
+ string dir;
+ string res;
+ char cleaned[FILE_MAX];
+ unsigned size = path.size();
- pathnames.push_back(base);
+ pathnames.push_back(base);
- for (unsigned int pos = 0, sep = path.find(Config::PATH_SEP, pos);
- pos < size;
- pos = sep + 1, sep = path.find(Config::PATH_SEP, pos))
- {
- if (sep == (unsigned)string::npos)
- sep = size;
+ for (unsigned int pos = 0, sep = path.find(Config::PATH_SEP, pos); pos < size;
+ pos = sep + 1, sep = path.find(Config::PATH_SEP, pos)) {
+ if (sep == (unsigned)string::npos)
+ sep = size;
- dir = path.substr(pos, sep - pos);
+ dir = path.substr(pos, sep - pos);
- BLI_strncpy(cleaned, dir.c_str(), FILE_MAX);
- BLI_cleanup_file(NULL, cleaned);
- res = string(cleaned);
+ BLI_strncpy(cleaned, dir.c_str(), FILE_MAX);
+ BLI_cleanup_file(NULL, cleaned);
+ res = string(cleaned);
- if (!base.empty())
- res += Config::DIR_SEP + base;
+ if (!base.empty())
+ res += Config::DIR_SEP + base;
- pathnames.push_back(res);
- }
+ pathnames.push_back(res);
+ }
}
-} // end of namespace StringUtils
+} // end of namespace StringUtils
} /* namespace Freestyle */