diff options
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/document.cxx | 8 | ||||
-rw-r--r-- | starmath/source/view.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index bd5f1351062d..72ca5a104a0a 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -756,12 +756,12 @@ bool SmDocShell::Load( SfxMedium& rMedium ) uno::Reference < container::XNameAccess > xAccess (xStorage, uno::UNO_QUERY); if ( ( - xAccess->hasByName( OUString("content.xml") ) && - xStorage->isStreamElement( OUString("content.xml") ) + xAccess->hasByName( "content.xml" ) && + xStorage->isStreamElement( "content.xml" ) ) || ( - xAccess->hasByName( OUString("Content.xml") ) && - xStorage->isStreamElement( OUString("Content.xml") ) + xAccess->hasByName( "Content.xml" ) && + xStorage->isStreamElement( "Content.xml" ) ) ) { diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 103ca38038aa..29eeaff572c8 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -1384,7 +1384,7 @@ void SmViewShell::Insert( SfxMedium& rMedium ) uno::Reference <container::XNameAccess> xNameAccess(xStorage, uno::UNO_QUERY); if (xNameAccess.is() && xNameAccess->getElementNames().getLength()) { - if (xNameAccess->hasByName(OUString("content.xml")) || xNameAccess->hasByName(OUString("Content.xml"))) + if (xNameAccess->hasByName("content.xml") || xNameAccess->hasByName("Content.xml")) { // is this a fabulous math package ? Reference<css::frame::XModel> xModel(pDoc->GetModel()); |