[Pkg-voip-commits] [bctoolbox] 23/60: Remove 'using namespace' from headers

Bernhard Schmidt berni at moszumanska.debian.org
Sun Oct 15 22:42:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

berni pushed a commit to branch debian/sid
in repository bctoolbox.

commit 0cda8686829e23387c4468f33c71425bcc36b9d7
Author: François Grisez <francois.grisez at belledonne-communications.com>
Date:   Thu Apr 6 09:04:28 2017 +0200

    Remove 'using namespace' from headers
---
 include/bctoolbox/exception.hh | 9 ++++-----
 src/utils/exception.cc         | 2 ++
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/include/bctoolbox/exception.hh b/include/bctoolbox/exception.hh
index ed7f1f3..dab34ce 100644
--- a/include/bctoolbox/exception.hh
+++ b/include/bctoolbox/exception.hh
@@ -26,7 +26,6 @@
 #include <ostream>
 
 
-using namespace std;
   /**
   * @brief General pupose exception saving backtrace.
   *
@@ -39,10 +38,10 @@ using namespace std;
   *
   *
   */
-class BctbxException : public exception {
+class BctbxException : public std::exception {
 public:
 	BctbxException();
-	BctbxException(const string &message);
+	BctbxException(const std::string &message);
 	BctbxException(const char *message);
 	virtual ~BctbxException() throw();
 	BctbxException(const BctbxException &other);
@@ -68,8 +67,8 @@ protected:
 private:
 	void *mArray[20];
 	size_t mSize;
-	ostringstream mOs;
-	mutable string mMessage;
+	std::ostringstream mOs;
+	mutable std::string mMessage;
 };
 std::ostream &operator<<(std::ostream &__os, const BctbxException &e);
 
diff --git a/src/utils/exception.cc b/src/utils/exception.cc
index c1f1eef..493c92b 100644
--- a/src/utils/exception.cc
+++ b/src/utils/exception.cc
@@ -25,6 +25,8 @@
 #include <iomanip>
 #include <libgen.h>
 
+using namespace std;
+
 static void uncaught_handler() {
 	std::exception_ptr p = current_exception();
 	try {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/bctoolbox.git



More information about the Pkg-voip-commits mailing list