summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/source/fwe/xml/toolboxdocumenthandler.cxx4
-rw-r--r--framework/source/uiconfiguration/windowstateconfiguration.cxx4
-rw-r--r--framework/source/uielement/controlmenucontroller.cxx4
3 files changed, 6 insertions, 6 deletions
diff --git a/framework/source/fwe/xml/toolboxdocumenthandler.cxx b/framework/source/fwe/xml/toolboxdocumenthandler.cxx
index 67d67ed308a9..26b28a04f348 100644
--- a/framework/source/fwe/xml/toolboxdocumenthandler.cxx
+++ b/framework/source/fwe/xml/toolboxdocumenthandler.cxx
@@ -82,7 +82,7 @@ namespace {
struct ToolboxStyleItem
{
sal_Int16 nBit;
- rtl::OUStringConstExpr attrName;
+ OUString attrName;
};
}
@@ -671,7 +671,7 @@ void OWriteToolBoxDocumentHandler::WriteToolBoxItem(
{
if ( !aValue.isEmpty() )
aValue.append(" ");
- aValue.append( OUString(pStyle->attrName) );
+ aValue.append( pStyle->attrName );
}
}
pList->AddAttribute( m_aXMLToolbarNS + ATTRIBUTE_ITEMSTYLE,
diff --git a/framework/source/uiconfiguration/windowstateconfiguration.cxx b/framework/source/uiconfiguration/windowstateconfiguration.cxx
index 97a1402c9f2e..be600fae3c46 100644
--- a/framework/source/uiconfiguration/windowstateconfiguration.cxx
+++ b/framework/source/uiconfiguration/windowstateconfiguration.cxx
@@ -81,7 +81,7 @@ const sal_Int16 PROPERTY_DOCKPOS = 14;
const sal_Int16 PROPERTY_DOCKSIZE = 15;
// Order must be the same as WindowStateMask!!
-rtl::OUStringConstExpr CONFIGURATION_PROPERTIES[]
+constexpr OUString CONFIGURATION_PROPERTIES[]
{
WINDOWSTATE_PROPERTY_LOCKED,
WINDOWSTATE_PROPERTY_DOCKED,
@@ -224,7 +224,7 @@ ConfigurationAccess_WindowState::ConfigurationAccess_WindowState( std::u16string
m_bModified( false )
{
// Initialize access array with property names.
- for (const rtl::OUStringConstExpr & s : CONFIGURATION_PROPERTIES )
+ for (const OUString & s : CONFIGURATION_PROPERTIES )
m_aPropArray.push_back(s);
}
diff --git a/framework/source/uielement/controlmenucontroller.cxx b/framework/source/uielement/controlmenucontroller.cxx
index b6dd84e069ce..83f80d242ac7 100644
--- a/framework/source/uielement/controlmenucontroller.cxx
+++ b/framework/source/uielement/controlmenucontroller.cxx
@@ -87,7 +87,7 @@ static TranslateId aLabels[] =
RID_STR_PROPTITLE_NAVBAR
};
-const rtl::OUStringConstExpr aImgIds[]
+constexpr OUString aImgIds[]
{
RID_SVXBMP_EDITBOX,
RID_SVXBMP_BUTTON,
@@ -193,7 +193,7 @@ void ControlMenuController::updateImagesPopupMenu(Reference<awt::XPopupMenu> con
sal_Int16 nItemId = i + 1;
if (m_bShowMenuImages)
{
- Image aImage(StockImage::Yes, OUString(aImgIds[i]));
+ Image aImage(StockImage::Yes, aImgIds[i]);
Graphic aGraphic(aImage);
rPopupMenu->setItemImage(nItemId, aGraphic.GetXGraphic(), false);
}