Less of The Big Ugly in the middle of the classes.
authorScott Wheeler <wheeler@kde.org>
Sun, 22 Mar 2009 19:27:38 +0000 (19:27 +0000)
committerScott Wheeler <wheeler@kde.org>
Sun, 22 Mar 2009 19:27:38 +0000 (19:27 +0000)
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@942880 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

taglib/fileref.h
taglib/mpeg/id3v1/id3v1tag.h
taglib/toolkit/taglib.h

index db2b7c77e3463abb530380da4b3ac7a84a1b33ed..0a7ecee00bca321971ca8ebedf83c65c6ee5fc11 100644 (file)
@@ -91,16 +91,8 @@ namespace TagLib {
 
     class TAGLIB_EXPORT FileTypeResolver
     {
-#ifdef __GNUC__
-#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 1)
-#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
-#endif
-#endif
-
+      TAGLIB_IGNORE_MISSING_DESTRUCTOR
     public:
-      // do not fix compiler warning about missing virtual destructor
-      // since this would not be binary compatible
-      // let Scott fix it whenever he thinks BIC changes can next be applied
       /*!
        * This method must be overridden to provide an additional file type
        * resolver.  If the resolver is able to determine the file type it should
index c8e4f99f0ca20725b18b445b67cb5d8dc09b3618..28dddcf0ef069ab199298d3c0a2bcbb5c20b6c53 100644 (file)
@@ -59,12 +59,7 @@ namespace TagLib {
 
     class TAGLIB_EXPORT StringHandler
     {
-#ifdef __GNUC__
-#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 1)
-#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
-#endif
-#endif
-
+      TAGLIB_IGNORE_MISSING_DESTRUCTOR
     public:
       // BIC: Add virtual destructor.
 
index 3a63cdb93351ca79350ee651fc6277ad3ce89664..de9ecd6934ba46b1469ab664266a44180145c30f 100644 (file)
 #define TAGLIB_MINOR_VERSION 5
 #define TAGLIB_PATCH_VERSION 0
 
+#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 1))
+#define TAGLIB_IGNORE_MISSING_DESTRUCTOR pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#else
+#define TAGLIB_IGNORE_MISSING_DESTRUCTOR
+#endif
+
 #include <string>
 
 //! A namespace for all TagLib related classes and functions