Small fixes found from Jenkins/etc.
[m6w6/libmemcached] / libmemcached / exception.hpp
index 043779a6b8e8620bb43da5201892ea64cd8e655b..4759072abdd758445e47674f37ef52cd9f151835 100644 (file)
@@ -10,8 +10,7 @@
  * @brief Exception declarations
  */
 
-#ifndef LIBMEMACHED_EXCEPTION_HPP
-#define LIBMEMACHED_EXCEPTION_HPP
+#pragma once
 
 #include <stdexcept>
 #include <string>
@@ -29,7 +28,7 @@ namespace memcache
 
     Exception(const char *msg, int in_errno)
       : 
-        std::runtime_error(string(msg)), 
+        std::runtime_error(std::string(msg)), 
         _errno(in_errno) {}
 
     virtual ~Exception() throw() {}
@@ -59,5 +58,3 @@ namespace memcache
   };
 
 } /* namespace libmemcached */
-
-#endif /* LIBMEMACHED_EXCEPTION_HPP */