git://developer.intra2net.com
/
bpdyndnsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1c0908b
)
Small STL usage improvement
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 17 Aug 2009 09:14:14 +0000 (11:14 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 17 Aug 2009 09:14:14 +0000 (11:14 +0200)
src/iphelper.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/iphelper.cpp
b/src/iphelper.cpp
index
4d81e07
..
da97293
100644
(file)
--- 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
{