[Libreoffice-commits] .: filter/source

Petr Mladek pmladek at kemper.freedesktop.org
Wed Mar 30 10:32:19 PDT 2011


 filter/source/config/cache/filtercache.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d4a304bfda2d4cf2bf1624a738ae9e2f9e98ca2f
Author: Petr Mladek <pmladek at suse.cz>
Date:   Wed Mar 30 19:28:32 2011 +0200

    warning-return-values-filter.diff: avoid warning (i#58977)
    
    the code was correct; it was wrongly detected by some gcc versions;
    the warning was considered as an error in openSUSE build service;
    the change does not cause any harm;

diff --git a/filter/source/config/cache/filtercache.cxx b/filter/source/config/cache/filtercache.cxx
index 9b8e90f..b1d2ad2 100644
--- a/filter/source/config/cache/filtercache.cxx
+++ b/filter/source/config/cache/filtercache.cxx
@@ -810,10 +810,10 @@ CacheItemList& FilterCache::impl_getItemList(EItemType eType) const
         case E_CONTENTHANDLER : return m_lContentHandlers;
         case E_DETECTSERVICE  : return m_lDetectServices ;
 
-        default : throw css::uno::Exception(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "unknown sub container requested." )),
-                                            css::uno::Reference< css::uno::XInterface >()                      );
     }
 
+    throw css::uno::Exception(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "unknown sub container requested." )),
+                                            css::uno::Reference< css::uno::XInterface >()                      );
     // <- SAFE ----------------------------------
 }
 


More information about the Libreoffice-commits mailing list