toolkit: Use appropriate OUString functions on string constants
Change-Id: Iad8c0ffce9f0b17556f5305929715ddc0cce1042
This commit is contained in:
@@ -2698,7 +2698,7 @@ uno::Sequence< beans::NamedValue > SAL_CALL VCLXMultiPage::getTabProps( sal_Int3
|
||||
|
||||
#define ADD_PROP( seq, i, name, val ) { \
|
||||
beans::NamedValue value; \
|
||||
value.Name = OUString( name ); \
|
||||
value.Name = name; \
|
||||
value.Value = uno::makeAny( val ); \
|
||||
seq[i] = value; \
|
||||
}
|
||||
|
@@ -129,7 +129,7 @@ public:
|
||||
{
|
||||
Sequence< OUString > aServices( AnimatedImagesControl_Base::getSupportedServiceNames() );
|
||||
aServices.realloc( aServices.getLength() + 1 );
|
||||
aServices[ aServices.getLength() - 1 ] = OUString("com.sun.star.awt.AnimatedImagesControl");
|
||||
aServices[ aServices.getLength() - 1 ] = "com.sun.star.awt.AnimatedImagesControl";
|
||||
return aServices;
|
||||
}
|
||||
|
||||
|
@@ -889,7 +889,7 @@ private:
|
||||
Sequence< OUString > SAL_CALL SortableGridDataModel::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
|
||||
{
|
||||
Sequence< OUString > aServiceNames(1);
|
||||
aServiceNames[0] = OUString("com.sun.star.awt.grid.SortableGridDataModel");
|
||||
aServiceNames[0] = "com.sun.star.awt.grid.SortableGridDataModel";
|
||||
return aServiceNames;
|
||||
}
|
||||
|
||||
|
@@ -69,7 +69,7 @@ css::uno::Sequence< OUString > SAL_CALL UnoControlTabPageModel::getSupportedServ
|
||||
{
|
||||
css::uno::Sequence< OUString > aNames = ControlModelContainerBase::getSupportedServiceNames( );
|
||||
aNames.realloc( aNames.getLength() + 1 );
|
||||
aNames[ aNames.getLength() - 1 ] = OUString("com.sun.star.awt.tab.UnoControlTabPageModel");
|
||||
aNames[ aNames.getLength() - 1 ] = "com.sun.star.awt.tab.UnoControlTabPageModel";
|
||||
return aNames;
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ css::uno::Sequence<OUString> SAL_CALL UnoControlTabPage::getSupportedServiceName
|
||||
throw (css::uno::RuntimeException, std::exception)
|
||||
{
|
||||
css::uno::Sequence< OUString > aSeq(1);
|
||||
aSeq[0] = OUString("com.sun.star.awt.tab.UnoControlTabPage");
|
||||
aSeq[0] = "com.sun.star.awt.tab.UnoControlTabPage";
|
||||
return aSeq;
|
||||
}
|
||||
|
||||
|
@@ -197,7 +197,7 @@ public:
|
||||
{
|
||||
Sequence< OUString > aServices( UnoControlModel::getSupportedServiceNames() );
|
||||
aServices.realloc( aServices.getLength() + 1 );
|
||||
aServices[ aServices.getLength() - 1 ] = OUString("com.sun.star.awt.UnoControlSpinButtonModel");
|
||||
aServices[ aServices.getLength() - 1 ] = "com.sun.star.awt.UnoControlSpinButtonModel";
|
||||
return aServices;
|
||||
}
|
||||
|
||||
@@ -260,7 +260,7 @@ public:
|
||||
{
|
||||
Sequence< OUString > aServices( UnoControlBase::getSupportedServiceNames() );
|
||||
aServices.realloc( aServices.getLength() + 1 );
|
||||
aServices[ aServices.getLength() - 1 ] = OUString("com.sun.star.awt.UnoControlSpinButton");
|
||||
aServices[ aServices.getLength() - 1 ] = "com.sun.star.awt.UnoControlSpinButton";
|
||||
return aServices;
|
||||
}
|
||||
|
||||
|
@@ -543,7 +543,7 @@ namespace toolkitform
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
pRadioWidget->OnValue = OUString( "On" );
|
||||
pRadioWidget->OnValue = "On";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user