diff options
author | Gert Faller <gertfaller@aliceadsl.fr> | 2010-11-21 00:01:19 +0100 |
---|---|---|
committer | Gert Faller <gertfaller@aliceadsl.fr> | 2010-11-21 00:01:19 +0100 |
commit | a1ab44109c4b8ca6c2ce3764ef2ec4f5a21ddedd (patch) | |
tree | 0704b826ea26b265c38153479e322cb2fa2b1d98 /sfx2/source/doc/objuno.cxx | |
parent | 2013b26251e51d7af10f36cac7ff7305ec5a7d46 (diff) |
TL_CONSTASCII_USTRINGPARAM in libs core 30
Diffstat (limited to 'sfx2/source/doc/objuno.cxx')
-rw-r--r-- | sfx2/source/doc/objuno.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sfx2/source/doc/objuno.cxx b/sfx2/source/doc/objuno.cxx index adb597c91a13..8eceb342246a 100644 --- a/sfx2/source/doc/objuno.cxx +++ b/sfx2/source/doc/objuno.cxx @@ -394,13 +394,13 @@ void SfxDocumentInfoObject_Impl::Reset(uno::Reference<document::XDocumentPropert : sName + ::rtl::OUString::valueOf(i+1); while (std::find(names.begin(), names.end(), name) != names.end()) { - name += ::rtl::OUString::createFromAscii("'"); + name += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("'")); } // FIXME there is a race condition here try { xPropContainer->addProperty(name, beans::PropertyAttribute::REMOVEABLE, - uno::makeAny(::rtl::OUString::createFromAscii(""))); + uno::makeAny(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("")))); } catch (uno::RuntimeException) { throw; } catch (uno::Exception) { @@ -888,7 +888,7 @@ void SAL_CALL SfxDocumentInfoObject::setFastPropertyValue(sal_Int32 nHandle, co _pImp->m_xDocProps->setAutoloadSecs(60); // default } else if ( !bBoolVal && (0 != _pImp->m_xDocProps->getAutoloadSecs()) ) { _pImp->m_xDocProps->setAutoloadSecs(0); - _pImp->m_xDocProps->setAutoloadURL(::rtl::OUString::createFromAscii("")); + _pImp->m_xDocProps->setAutoloadURL(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(""))); } break; default: @@ -1141,7 +1141,7 @@ void SAL_CALL SfxDocumentInfoObject::setUserFieldName(sal_Int16 nIndex, const : try { xPropContainer->addProperty(aName, beans::PropertyAttribute::REMOVEABLE, - uno::makeAny(::rtl::OUString::createFromAscii(""))); + uno::makeAny(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("")))); _pImp->m_UserDefined[nIndex] = aName; } catch (beans::PropertyExistException) { _pImp->m_UserDefined[nIndex] = aName; @@ -1310,9 +1310,9 @@ void SAL_CALL SfxStandaloneDocumentInfoObject::loadFromURL(const ::rtl::OUStrin try { uno::Sequence<beans::PropertyValue> medium(2); - medium[0].Name = ::rtl::OUString::createFromAscii("DocumentBaseURL"); + medium[0].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DocumentBaseURL")); medium[0].Value <<= aURL; - medium[1].Name = ::rtl::OUString::createFromAscii("URL"); + medium[1].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("URL")); medium[1].Value <<= aURL; _pImp->m_xDocProps->loadFromStorage(xStorage, medium); _pImp->Reset(_pImp->m_xDocProps); @@ -1350,9 +1350,9 @@ void SAL_CALL SfxStandaloneDocumentInfoObject::storeIntoURL(const ::rtl::OUStri try { uno::Sequence<beans::PropertyValue> medium(2); - medium[0].Name = ::rtl::OUString::createFromAscii("DocumentBaseURL"); + medium[0].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DocumentBaseURL")); medium[0].Value <<= aURL; - medium[1].Name = ::rtl::OUString::createFromAscii("URL"); + medium[1].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("URL")); medium[1].Value <<= aURL; _pImp->m_xDocProps->storeToStorage(xStorage, medium); |