summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-24 01:03:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-24 11:21:42 +0100
commite56c8606952e99d7ba1cfc5ff1c8b2ea0b533373 (patch)
treea6e6f090c38aee21f5128939fc45952aa180c600 /cui
parent035a88c73597a01439d86c2610763126ae6fd927 (diff)
various createfromascii -> RTL_CONSTASCII_USTRINGPARAM
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfg.cxx23
-rw-r--r--cui/source/customize/selector.cxx8
2 files changed, 16 insertions, 15 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 7ab975de6ce2..5103e299c9e7 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -108,9 +108,8 @@ static const char ITEM_TOOLBAR_URL[] = "private:resource/toolbar/";
static const char CUSTOM_TOOLBAR_STR[] = "custom_toolbar_";
static const char CUSTOM_MENU_STR[] = "vnd.openoffice.org:CustomMenu";
-static const char pSeparatorStr[] =
- "----------------------------------";
-static const char pMenuSeparatorStr[] = " | ";
+static const char aSeparatorStr[] = "----------------------------------";
+static const char aMenuSeparatorStr[] = " | ";
#ifdef _MSC_VER
#pragma warning (disable:4355)
@@ -1090,7 +1089,8 @@ MenuSaveInData::GetEntries()
if ( pRootEntry == NULL )
{
pRootEntry = new SvxConfigEntry(
- String::CreateFromAscii("MainMenus"), String(), sal_True );
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MainMenus")),
+ rtl::OUString(), sal_True);
if ( m_xMenuSettings.is() )
{
@@ -1189,8 +1189,8 @@ bool MenuSaveInData::LoadSubMenus(
if ( subMenuTitle.getLength() != 0 )
{
- subMenuTitle +=
- OUString::createFromAscii(pMenuSeparatorStr);
+ subMenuTitle += OUString(
+ RTL_CONSTASCII_USTRINGPARAM(aMenuSeparatorStr));
}
else
{
@@ -2057,7 +2057,7 @@ void SvxConfigPage::AddSubMenusToUI(
if ( pEntryData->IsPopup() )
{
OUString subMenuTitle( rBaseTitle );
- subMenuTitle += OUString::createFromAscii( pMenuSeparatorStr );
+ subMenuTitle += OUString(RTL_CONSTASCII_USTRINGPARAM(aMenuSeparatorStr));
subMenuTitle += stripHotKey( pEntryData->GetName() );
sal_uInt16 nPos = aTopLevelListBox.InsertEntry( subMenuTitle );
@@ -2207,8 +2207,8 @@ SvLBoxEntry* SvxConfigPage::InsertEntryIntoUI(
if (pNewEntryData->IsSeparator())
{
pNewEntry = aContentsListBox->InsertEntry(
- String::CreateFromAscii( pSeparatorStr ),
- 0, sal_False, nPos, pNewEntryData );
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(aSeparatorStr)),
+ 0, sal_False, nPos, pNewEntryData);
}
else
{
@@ -3960,7 +3960,8 @@ SvxEntries* ToolbarSaveInData::GetEntries()
{
pRootEntry = new SvxConfigEntry(
- String::CreateFromAscii("MainToolbars"), String(), sal_True );
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("MainToolbars")),
+ rtl::OUString(), sal_True);
uno::Sequence< uno::Sequence < beans::PropertyValue > > info =
GetConfigManager()->getUIElementsInfo(
@@ -5320,7 +5321,7 @@ IMPL_LINK( SvxIconSelectorDialog, ImportHdl, PushButton *, pButton )
}
aImportDialog.SetCurrentFilter(
- String::CreateFromAscii( "PNG - Portable Network Graphic" ) );
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PNG - Portable Network Graphic")));
if ( ERRCODE_NONE == aImportDialog.Execute() )
{
diff --git a/cui/source/customize/selector.cxx b/cui/source/customize/selector.cxx
index 0900a1ff4847..2736368df6d6 100644
--- a/cui/source/customize/selector.cxx
+++ b/cui/source/customize/selector.cxx
@@ -795,7 +795,7 @@ void SvxConfigGroupListBox_Impl::GroupSelected()
Sequence< Reference< browse::XBrowseNode > > children =
rootNode->getChildNodes();
- for ( long n = 0; n < children.getLength(); ++n )
+ for ( sal_Int32 n = 0; n < children.getLength(); ++n )
{
if (!children[n].is())
continue;
@@ -810,14 +810,14 @@ void SvxConfigGroupListBox_Impl::GroupSelected()
continue;
}
- Any value =
- xPropSet->getPropertyValue( String::CreateFromAscii( "URI" ) );
+ Any value = xPropSet->getPropertyValue(
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("URI")));
value >>= uri;
try
{
value = xPropSet->getPropertyValue(
- String::CreateFromAscii( "Description" ) );
+ rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Description")));
value >>= description;
}
catch (Exception &) {