From 217275434e47c305ba97080812e3007d484bec54 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Tue, 23 Feb 2016 15:23:30 +0100 Subject: [PATCH] [BL] Put internal functions into anonymous ns. --- BaseLib/FileTools.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BaseLib/FileTools.cpp b/BaseLib/FileTools.cpp index ac858f61ca9..484e5283189 100644 --- a/BaseLib/FileTools.cpp +++ b/BaseLib/FileTools.cpp @@ -56,6 +56,9 @@ void truncateFile( std::string const& filename) ofs.close(); } +namespace +{ + /** Finds the position of last file path separator. * Checks for unix or windows file path separators in given path and returns the * position of the last one or std::string::npos if no file path separator was @@ -75,6 +78,7 @@ std::string::size_type findLastDot(std::string const& path) { return path.find_last_of("."); } +} // end namespace std::string dropFileExtension(std::string const& filename) { -- GitLab