]> git.sesse.net Git - plocate/commitdiff
Fix a Clang warning.
authorSteinar H. Gunderson <steinar+git@gunderson.no>
Sat, 12 Dec 2020 11:43:28 +0000 (12:43 +0100)
committerSteinar H. Gunderson <steinar+git@gunderson.no>
Sat, 12 Dec 2020 11:53:54 +0000 (12:53 +0100)
lib.cpp

diff --git a/lib.cpp b/lib.cpp
index 171ecedafbe26e98306a88ffc4a0eb9d529cdccb..83a9692f059e19b7bd6600f92073cd67939d9526 100644 (file)
--- a/lib.cpp
+++ b/lib.cpp
@@ -20,8 +20,6 @@ plocate parts and modifications are licensed under the GPLv2 or, at your option,
 any later version.
 */
 
-using namespace std;
-
 #include "lib.h"
 
 #include "db.h"
@@ -39,6 +37,8 @@ using namespace std;
 #include <string.h>
 #include <unistd.h>
 
+using namespace std;
+
 /* Compare two path names using the database directory order. This is not
    exactly strcmp () order: "a" < "a.b", so "a/z" < "a.b". */
 int dir_path_cmp(const string &a, const string &b)