moved 3 lines of Cname constructors from dnscache.cpp to cname.h
[pingcheck] / src / dns / cname.h
index 7f301be..883dc51 100644 (file)
@@ -39,9 +39,12 @@ struct Cname
     std::string Host;
     TimeToLive Ttl;
 
-    Cname();
-    Cname(const std::string &host, const uint32_t ttl);
-    Cname(const std::string &host, const TimeToLive &ttl);
+    Cname()  {}
+    Cname(const std::string &host, const uint32_t ttl)
+        : Host(host), Ttl( TimeToLive(ttl) ) {}
+
+    Cname(const std::string &host, const TimeToLive &ttl)
+        : Host(host), Ttl(ttl)     {}
 
     // serialization
     friend class boost::serialization::access;