]> granicus.if.org Git - icinga2/commitdiff
Build fixes for gcc.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 18 May 2012 08:27:41 +0000 (10:27 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 18 May 2012 08:27:41 +0000 (10:27 +0200)
base/dictionary.h
base/exception.h

index ec8df24516d0187f46fc74d7ca9a8a7b1ba7290f..9891335e5bcba8377aaa397181d3afcf013ac9b1 100644 (file)
@@ -53,7 +53,7 @@ public:
                if (i == m_Data.end())
                        return false;
 
-               *value = i->second;
+               *value = static_cast<T>(i->second);
 
                return true;
        }
index 9687b734126f6d02fb09482946c8c30e2d48ad16..b3638a15b5f2701f21bd3af114d375626ae98502 100644 (file)
@@ -41,7 +41,7 @@ public:
        /**
         * Destructor for the Exception class. Must be virtual for RTTI to work.
         */
-       virtual ~Exception(void)
+       virtual ~Exception(void) throw()
        {
                delete m_Message;
        }