summaryrefslogtreecommitdiffstats
path: root/raul/Path.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-11-22 06:16:10 +0000
committerDavid Robillard <d@drobilla.net>2012-11-22 06:16:10 +0000
commitc4b51e0935f75d118164fab6bfcefc6ddf69867e (patch)
treef4f6bfc5e0a19561dd7860f82976dff3fdbb68a6 /raul/Path.hpp
parent5642368878114fd99cb6bf877258945a38c3c0b9 (diff)
downloadraul-c4b51e0935f75d118164fab6bfcefc6ddf69867e.tar.gz
raul-c4b51e0935f75d118164fab6bfcefc6ddf69867e.tar.bz2
raul-c4b51e0935f75d118164fab6bfcefc6ddf69867e.zip
Tidy.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4851 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/Path.hpp')
-rw-r--r--raul/Path.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/raul/Path.hpp b/raul/Path.hpp
index 867e2e3..ee8444a 100644
--- a/raul/Path.hpp
+++ b/raul/Path.hpp
@@ -17,6 +17,7 @@
#ifndef RAUL_PATH_HPP
#define RAUL_PATH_HPP
+#include <algorithm>
#include <string>
#include "raul/Exception.hpp"
@@ -148,7 +149,8 @@ public:
} else {
const size_t first_sep = find('/');
const size_t last_sep = find_last_of('/');
- return (first_sep == last_sep) ? Path("/") : Path(substr(0, last_sep));
+ return (first_sep == last_sep)
+ ? Path("/") : Path(substr(0, last_sep));
}
}