summaryrefslogtreecommitdiff
path: root/toolkit/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-31 10:29:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-31 10:31:25 +0000
commitaeeabc36fd0a4a71238c8c3df2e80ea324f9bac0 (patch)
treee329e090adf73c37d18897ddacbd6b1e07382512 /toolkit/source
parent40f186a73225f0fcbce828c97d6395dfffb79a90 (diff)
loplugin:oncevar in unoxml..toolkit
Change-Id: I3b97665908be0a44d24192433bdc9c2bd9008736 Reviewed-on: https://gerrit.libreoffice.org/30431 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit/source')
-rw-r--r--toolkit/source/helper/formpdfexport.cxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/toolkit/source/helper/formpdfexport.cxx b/toolkit/source/helper/formpdfexport.cxx
index 00ea42d3cb0d..e02ba19bbdfa 100644
--- a/toolkit/source/helper/formpdfexport.cxx
+++ b/toolkit/source/helper/formpdfexport.cxx
@@ -244,9 +244,8 @@ namespace toolkitform
*/
void getStringItemVector( const Reference< XPropertySet >& _rxModel, ::std::vector< OUString >& _rVector )
{
- static const char FM_PROP_STRINGITEMLIST[] = "StringItemList";
Sequence< OUString > aListEntries;
- OSL_VERIFY( _rxModel->getPropertyValue( FM_PROP_STRINGITEMLIST ) >>= aListEntries );
+ OSL_VERIFY( _rxModel->getPropertyValue( "StringItemList" ) >>= aListEntries );
::std::copy( aListEntries.begin(), aListEntries.end(),
::std::back_insert_iterator< ::std::vector< OUString > >( _rVector ) );
}
@@ -284,8 +283,7 @@ namespace toolkitform
// Name, Description, Text
OSL_VERIFY( xModelProps->getPropertyValue( FM_PROP_NAME ) >>= Descriptor->Name );
- static const char FM_PROP_HELPTEXT[] = "HelpText";
- OSL_VERIFY( xModelProps->getPropertyValue( FM_PROP_HELPTEXT ) >>= Descriptor->Description );
+ OSL_VERIFY( xModelProps->getPropertyValue( "HelpText" ) >>= Descriptor->Description );
Any aText;
static const char FM_PROP_TEXT[] = "Text";
static const char FM_PROP_LABEL[] = "Label";
@@ -436,8 +434,7 @@ namespace toolkitform
}
// file select
- static const char FM_SUN_COMPONENT_FILECONTROL[] = "com.sun.star.form.component.FileControl";
- if ( xSI->supportsService( FM_SUN_COMPONENT_FILECONTROL ) )
+ if ( xSI->supportsService( "com.sun.star.form.component.FileControl" ) )
pEditWidget->FileSelect = true;
// maximum text length
@@ -539,8 +536,7 @@ namespace toolkitform
pRadioWidget->RadioGroup = determineRadioGroupId( xModelProps );
try
{
- static const char FM_PROP_REFVALUE[] = "RefValue";
- xModelProps->getPropertyValue( FM_PROP_REFVALUE ) >>= pRadioWidget->OnValue;
+ xModelProps->getPropertyValue( "RefValue" ) >>= pRadioWidget->OnValue;
}
catch(...)
{
@@ -555,8 +551,7 @@ namespace toolkitform
vcl::PDFWriter::ListBoxWidget* pListWidget = static_cast< vcl::PDFWriter::ListBoxWidget* >( Descriptor.get() );
// drop down
- static const char FM_PROP_DROPDOWN[] = "Dropdown";
- OSL_VERIFY( xModelProps->getPropertyValue( FM_PROP_DROPDOWN ) >>= pListWidget->DropDown );
+ OSL_VERIFY( xModelProps->getPropertyValue( "Dropdown" ) >>= pListWidget->DropDown );
// multi selection
OSL_VERIFY( xModelProps->getPropertyValue("MultiSelection") >>= pListWidget->MultiSelect );