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 ) { \
|
#define ADD_PROP( seq, i, name, val ) { \
|
||||||
beans::NamedValue value; \
|
beans::NamedValue value; \
|
||||||
value.Name = OUString( name ); \
|
value.Name = name; \
|
||||||
value.Value = uno::makeAny( val ); \
|
value.Value = uno::makeAny( val ); \
|
||||||
seq[i] = value; \
|
seq[i] = value; \
|
||||||
}
|
}
|
||||||
|
@@ -129,7 +129,7 @@ public:
|
|||||||
{
|
{
|
||||||
Sequence< OUString > aServices( AnimatedImagesControl_Base::getSupportedServiceNames() );
|
Sequence< OUString > aServices( AnimatedImagesControl_Base::getSupportedServiceNames() );
|
||||||
aServices.realloc( aServices.getLength() + 1 );
|
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;
|
return aServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -889,7 +889,7 @@ private:
|
|||||||
Sequence< OUString > SAL_CALL SortableGridDataModel::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
|
Sequence< OUString > SAL_CALL SortableGridDataModel::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
|
||||||
{
|
{
|
||||||
Sequence< OUString > aServiceNames(1);
|
Sequence< OUString > aServiceNames(1);
|
||||||
aServiceNames[0] = OUString("com.sun.star.awt.grid.SortableGridDataModel");
|
aServiceNames[0] = "com.sun.star.awt.grid.SortableGridDataModel";
|
||||||
return aServiceNames;
|
return aServiceNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -69,7 +69,7 @@ css::uno::Sequence< OUString > SAL_CALL UnoControlTabPageModel::getSupportedServ
|
|||||||
{
|
{
|
||||||
css::uno::Sequence< OUString > aNames = ControlModelContainerBase::getSupportedServiceNames( );
|
css::uno::Sequence< OUString > aNames = ControlModelContainerBase::getSupportedServiceNames( );
|
||||||
aNames.realloc( aNames.getLength() + 1 );
|
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;
|
return aNames;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,7 +197,7 @@ css::uno::Sequence<OUString> SAL_CALL UnoControlTabPage::getSupportedServiceName
|
|||||||
throw (css::uno::RuntimeException, std::exception)
|
throw (css::uno::RuntimeException, std::exception)
|
||||||
{
|
{
|
||||||
css::uno::Sequence< OUString > aSeq(1);
|
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;
|
return aSeq;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -197,7 +197,7 @@ public:
|
|||||||
{
|
{
|
||||||
Sequence< OUString > aServices( UnoControlModel::getSupportedServiceNames() );
|
Sequence< OUString > aServices( UnoControlModel::getSupportedServiceNames() );
|
||||||
aServices.realloc( aServices.getLength() + 1 );
|
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;
|
return aServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -260,7 +260,7 @@ public:
|
|||||||
{
|
{
|
||||||
Sequence< OUString > aServices( UnoControlBase::getSupportedServiceNames() );
|
Sequence< OUString > aServices( UnoControlBase::getSupportedServiceNames() );
|
||||||
aServices.realloc( aServices.getLength() + 1 );
|
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;
|
return aServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -543,7 +543,7 @@ namespace toolkitform
|
|||||||
}
|
}
|
||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
pRadioWidget->OnValue = OUString( "On" );
|
pRadioWidget->OnValue = "On";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user