Small STL usage improvement
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 17 Aug 2009 09:14:14 +0000 (11:14 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 17 Aug 2009 09:14:14 +0000 (11:14 +0200)
src/iphelper.cpp

index 4d81e07..da97293 100644 (file)
@@ -58,7 +58,7 @@ IPHelper::~IPHelper()
  */
 string IPHelper::get_actual_ip() const
 {
-    if ( WebcheckIpUrl == "" )
+    if ( WebcheckIpUrl.empty() )
     {
         return dns_query();
     }
@@ -76,8 +76,8 @@ string IPHelper::get_actual_ip() const
  */
 string IPHelper::dns_query() const
 {
-    string ip_addr_v4 = "";
-    string ip_addr_v6 = "";
+    string ip_addr_v4;
+    string ip_addr_v6;
 
     try
     {