summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Joachim Lankenau <hjs@openoffice.org>2010-12-17 15:11:37 +0100
committerHans-Joachim Lankenau <hjs@openoffice.org>2010-12-17 15:11:37 +0100
commitd1dbdfa93da9103f7ddb5f04412716ceafd039ef (patch)
tree019cc03f69a04debc74203ba927aa5631629490b
parentbca83ced594c6773bf4f405cfd1888610bb5a72c (diff)
parent7438c4037e42f36c0161f61c32bf28378df9dfc3 (diff)
CWS-TOOLING: integrate CWS chart49
-rw-r--r--embeddedobj/source/commonembedding/persistence.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/embeddedobj/source/commonembedding/persistence.cxx b/embeddedobj/source/commonembedding/persistence.cxx
index 5cc9c03d8c..75a6e7f962 100644
--- a/embeddedobj/source/commonembedding/persistence.cxx
+++ b/embeddedobj/source/commonembedding/persistence.cxx
@@ -229,11 +229,11 @@ static uno::Reference< util::XCloseable > CreateDocument( const uno::Reference<
}
catch( const uno::Exception& )
{
- // some of our embedded object implementations (in particular chart) do neither support
- // the EmbeddedObject, nor the EmbeddedScriptSupport argument. Also, they do not support
- // XInitialization, which means the default factory from cppuhelper will throw an
+ // if an embedded object implementation does not support XInitialization,
+ // the default factory from cppuhelper will throw an
// IllegalArgumentException when we try to create the instance with arguments.
// Okay, so we fall back to creating the instance without any arguments.
+ OSL_ASSERT("Consider implementing interface XInitialization to avoid duplicate construction");
xDocument = _rxFactory->createInstance( _rDocumentServiceName );
}