File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ class CppCheckExecutor : public ErrorLogger {
140140 * If no errors are found, 0 is returned.
141141 */
142142 int check_internal (CppCheck& cppcheck, int argc, const char * const argv[]);
143+
143144 /* *
144145 * Pointer to current settings; set while check() is running.
145146 */
Original file line number Diff line number Diff line change @@ -109,14 +109,12 @@ std::string Path::simplifyPath(std::string originalPath)
109109
110110std::string Path::getPathFromFilename (const std::string &filename)
111111{
112- std::string path = " " ;
113-
114112 std::size_t pos = filename.find_last_of (" \\ /" );
115113
116114 if (pos != std::string::npos)
117- path = filename.substr (0 , 1 + pos);
115+ return filename.substr (0 , 1 + pos);
118116
119- return path ;
117+ return " " ;
120118}
121119
122120
You can’t perform that action at this time.
0 commit comments