From 05afd14a3785387003b6f0439021fecb83d0595f Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Fri, 10 May 2013 14:04:40 +0200 Subject: [PATCH] fix string type usage --- pdns/version.cc | 4 +--- pdns/version.hh | 9 ++++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/pdns/version.cc b/pdns/version.cc index e46b49652f..577d4bb348 100644 --- a/pdns/version.cc +++ b/pdns/version.cc @@ -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 "< -#include +#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 -- 2.47.3