projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge trunk for LP
[awesomized/libmemcached]
/
libmemcached
/
exception.hpp
diff --git
a/libmemcached/exception.hpp
b/libmemcached/exception.hpp
index 043779a6b8e8620bb43da5201892ea64cd8e655b..4759072abdd758445e47674f37ef52cd9f151835 100644
(file)
--- a/
libmemcached/exception.hpp
+++ b/
libmemcached/exception.hpp
@@
-10,8
+10,7
@@
* @brief Exception declarations
*/
* @brief Exception declarations
*/
-#ifndef LIBMEMACHED_EXCEPTION_HPP
-#define LIBMEMACHED_EXCEPTION_HPP
+#pragma once
#include <stdexcept>
#include <string>
#include <stdexcept>
#include <string>
@@
-29,7
+28,7
@@
namespace memcache
Exception(const char *msg, int in_errno)
:
Exception(const char *msg, int in_errno)
:
- std::runtime_error(string(msg)),
+ std::runtime_error(st
d::st
ring(msg)),
_errno(in_errno) {}
virtual ~Exception() throw() {}
_errno(in_errno) {}
virtual ~Exception() throw() {}
@@
-59,5
+58,3
@@
namespace memcache
};
} /* namespace libmemcached */
};
} /* namespace libmemcached */
-
-#endif /* LIBMEMACHED_EXCEPTION_HPP */