]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix string type usage
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Fri, 10 May 2013 12:04:40 +0000 (14:04 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Fri, 10 May 2013 12:04:40 +0000 (14:04 +0200)
pdns/version.cc
pdns/version.hh

index e46b49652fb927dff8926e238404129fc35d474b..577d4bb348e2f23cc547e92568240dabbbf97c8d 100644 (file)
@@ -20,8 +20,6 @@
 #include "version.hh"
 #include "version_generated.h"
 
-using namespace std;
-
 static string productName("");
 
 string compilerVersion()
@@ -50,7 +48,7 @@ void showProductVersion()
 
 string fullVersionString()
 {
-  stringstream s;
+  ostringstream s;
   s << "PowerDNS "<<productName<<" "PDNS_VERSION" ("DIST_HOST" built "BUILD_DATE" "BUILD_HOST")";
   return s.str();
 }
index 26d569ab9143641b120a7af028e47c76a14edc94..09058558da0f5765ce1b2e484b3fb236dd254a27 100644 (file)
 #ifndef VERSION_HH
 #define VERSION_HH
 
-#include <string>
-#include <sstream>
+#include "namespaces.hh"
 
-std::string compilerVersion();
+string compilerVersion();
 void showProductVersion();
-std::string fullVersionString();
-void versionSetProduct(std::string product);
+string fullVersionString();
+void versionSetProduct(string product);
 
 #endif //!VERSION_HH