From: Thomas Jarosch Date: Mon, 17 Aug 2009 09:14:14 +0000 (+0200) Subject: Small STL usage improvement X-Git-Tag: v1.1~223 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=20a5e1e449e618f339339df65b5a4054549d9560;p=bpdyndnsd Small STL usage improvement --- diff --git a/src/iphelper.cpp b/src/iphelper.cpp index 4d81e07..da97293 100644 --- a/src/iphelper.cpp +++ b/src/iphelper.cpp @@ -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 {