Kaydet (Commit) 226dd312 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

extensions: Use appropriate OUString functions on string constants

Change-Id: I4f117b3339753af254768724c38167f3595fbe69
üst 9f806fca
......@@ -107,7 +107,7 @@ void OUnoAutoPilot<TYPE, SERVICEINFO>::implInitialize(const com::sun::star::uno:
{
::com::sun::star::beans::PropertyValue aArgument;
if (_rValue >>= aArgument)
if (aArgument.Name.equals("ObjectModel"))
if (aArgument.Name == "ObjectModel")
{
aArgument.Value >>= m_xObjectModel;
return;
......
......@@ -650,7 +650,7 @@ namespace pcr
return;
OUString sOldSelection = m_sPageSelection;
m_sPageSelection = "";
m_sPageSelection.clear();
const sal_uInt16 nCurrentPage = m_pView->getActivaPage();
if ( (sal_uInt16)-1 != nCurrentPage )
......@@ -1373,7 +1373,7 @@ namespace pcr
OUString sPlcHolder = PcrRes(RID_EMBED_IMAGE_PLACEHOLDER).toString();
bool bIsPlaceHolderValue = false;
if ( rName.equals( PROPERTY_IMAGE_URL ) )
if ( rName == PROPERTY_IMAGE_URL )
{
// if the prop value is the PlaceHolder
// can ignore it
......@@ -1421,7 +1421,7 @@ namespace pcr
OSL_FAIL("OPropertyBrowserController::Commit : caught an exception !");
}
m_sCommittingProperty = "";
m_sCommittingProperty.clear();
}
......
......@@ -626,8 +626,7 @@ OUString SAL_CALL _getImplementationName() {
uno::Sequence< OUString > SAL_CALL _getSupportedServiceNames()
{
uno::Sequence< OUString > s(1);
s[0] = OUString(
"com.sun.star.inspection.StringRepresentation");
s[0] = "com.sun.star.inspection.StringRepresentation";
return s;
}
......
......@@ -320,7 +320,7 @@ void SAL_CALL UpdateHandler::actionPerformed( awt::ActionEvent const & rEvent )
}
}
if ( rEvent.ActionCommand.equals( COMMAND_CLOSE ) )
if ( rEvent.ActionCommand == COMMAND_CLOSE )
{
if ( ( mnLastCtrlState & ( 1 << CLOSE_BUTTON ) ) == ( 1 << CLOSE_BUTTON ) )
eButton = CLOSE_BUTTON;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment