[Libreoffice-commits] .: stoc/source

Michael Meeks michael at kemper.freedesktop.org
Tue Jun 14 02:49:00 PDT 2011


 stoc/source/simpleregistry/textualservices.cxx |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

New commits:
commit 1247c8b2350734c4f16bbc15404c3c7d56bf8523
Author: Michael Meeks <michael.meeks at novell.com>
Date:   Tue Jun 14 10:46:42 2011 +0100

    don't throw an exception on unexpected attributes in XML rdb files

diff --git a/stoc/source/simpleregistry/textualservices.cxx b/stoc/source/simpleregistry/textualservices.cxx
index 5a50a5a..483c8ba 100644
--- a/stoc/source/simpleregistry/textualservices.cxx
+++ b/stoc/source/simpleregistry/textualservices.cxx
@@ -283,13 +283,7 @@ void Parser::handleComponent() {
                     css::uno::Reference< css::uno::XInterface >());
             }
         } else {
-            throw css::registry::InvalidRegistryException(
-                (reader_.getUrl() +
-                 rtl::OUString(
-                     RTL_CONSTASCII_USTRINGPARAM(
-                         ": expected <component> attribute \"uri\" or"
-                         " \"loader\""))),
-                css::uno::Reference< css::uno::XInterface >());
+          OSL_FAIL ("unexpected component attribute, expected 'uri' or 'loader'");
         }
     }
     if (attrUri_.getLength() == 0) {


More information about the Libreoffice-commits mailing list