diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-02 13:21:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-02 14:22:21 +0100 |
commit | f8922b67a4dc1ff0b889f33d2407584aed5d2e36 (patch) | |
tree | c3dbbc81468176b79e03b8222bb174fc24a30e16 /vcl | |
parent | c7531408b3ef4b2d284edf35ed983c23e7585231 (diff) |
Remove unnecessary comphelper::string::getToken
Change-Id: I49192637121441b9a1980350b9bb32cd995d4386
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/generic/fontmanager/fontmanager.cxx | 2 | ||||
-rw-r--r-- | vcl/source/filter/FilterConfigItem.cxx | 5 | ||||
-rw-r--r-- | vcl/source/filter/graphicfilter.cxx | 5 | ||||
-rw-r--r-- | vcl/source/filter/ixbm/xbmread.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/printer/printerinfomanager.cxx | 20 | ||||
-rw-r--r-- | vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | 2 |
6 files changed, 14 insertions, 22 deletions
diff --git a/vcl/generic/fontmanager/fontmanager.cxx b/vcl/generic/fontmanager/fontmanager.cxx index 4fbded72515c..94165b8f174e 100644 --- a/vcl/generic/fontmanager/fontmanager.cxx +++ b/vcl/generic/fontmanager/fontmanager.cxx @@ -84,8 +84,6 @@ using namespace com::sun::star::uno; using namespace com::sun::star::beans; using namespace com::sun::star::lang; -using ::comphelper::string::getToken; - /* * static helpers */ diff --git a/vcl/source/filter/FilterConfigItem.cxx b/vcl/source/filter/FilterConfigItem.cxx index 0c24c1b2f0ab..f0a431b150f4 100644 --- a/vcl/source/filter/FilterConfigItem.cxx +++ b/vcl/source/filter/FilterConfigItem.cxx @@ -45,7 +45,6 @@ static bool ImpIsTreeAvailable( Reference< XMultiServiceFactory >& rXCfgProv, co if ( bAvailable ) { using comphelper::string::getTokenCount; - using comphelper::string::getToken; sal_Int32 nTokenCount = getTokenCount(rTree, '/'); sal_Int32 i = 0; @@ -56,7 +55,7 @@ static bool ImpIsTreeAvailable( Reference< XMultiServiceFactory >& rXCfgProv, co --nTokenCount; Any aAny; - aAny <<= getToken(rTree, i++, '/'); + aAny <<= rTree.getToken(i++, '/'); // creation arguments: nodepath PropertyValue aPathArgument; @@ -88,7 +87,7 @@ static bool ImpIsTreeAvailable( Reference< XMultiServiceFactory >& rXCfgProv, co bAvailable = false; else { - OUString aNode( getToken(rTree, i, '/') ); + OUString aNode( rTree.getToken(i, '/') ); if ( !xHierarchicalNameAccess->hasByHierarchicalName( aNode ) ) bAvailable = false; else diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx index b47e6745c44d..9ef46c8d423e 100644 --- a/vcl/source/filter/graphicfilter.cxx +++ b/vcl/source/filter/graphicfilter.cxx @@ -80,7 +80,6 @@ using namespace ::com::sun::star; using comphelper::string::getTokenCount; -using comphelper::string::getToken; typedef ::std::vector< GraphicFilter* > FilterList_impl; static FilterList_impl* pFilterHdlList = NULL; @@ -1698,7 +1697,7 @@ sal_uInt16 GraphicFilter::ImportGraphic( Graphic& rGraphic, const OUString& rPat sal_Int32 i, nTokenCount = getTokenCount(aFilterPath, ';'); ImpFilterLibCache &rCache = Cache::get(); for( i = 0; ( i < nTokenCount ) && ( pFilter == NULL ); i++ ) - pFilter = rCache.GetFilter( getToken(aFilterPath, i, ';'), aFilterName ); + pFilter = rCache.GetFilter( aFilterPath.getToken(i, ';'), aFilterName ); if( !pFilter ) nStatus = GRFILTER_FILTERERROR; else @@ -2112,7 +2111,7 @@ sal_uInt16 GraphicFilter::ExportGraphic( const Graphic& rGraphic, const OUString for ( i = 0; i < nTokenCount; i++ ) { #ifndef DISABLE_DYNLOADING - OUString aPhysicalName( ImpCreateFullFilterPath( getToken(aFilterPath, i, ';'), aFilterName ) ); + OUString aPhysicalName( ImpCreateFullFilterPath( aFilterPath.getToken(i, ';'), aFilterName ) ); osl::Module aLibrary( aPhysicalName ); PFilterCall pFunc = (PFilterCall) aLibrary.getFunctionSymbol(OUString(EXPORT_FUNCTION_NAME)); diff --git a/vcl/source/filter/ixbm/xbmread.cxx b/vcl/source/filter/ixbm/xbmread.cxx index 95603d4dc6b9..58d8cb79d3dd 100644 --- a/vcl/source/filter/ixbm/xbmread.cxx +++ b/vcl/source/filter/ixbm/xbmread.cxx @@ -203,7 +203,7 @@ bool XBMReader::ParseData( SvStream* pInStm, const OString& aLastLine, XBMFormat for( sal_Int32 i = 0; ( i < nCount ) && ( nRow < nHeight ); ++i ) { - const OString aToken(comphelper::string::getToken(aLine,i, ',')); + const OString aToken(aLine.getToken(i, ',')); const sal_Int32 nLen = aToken.getLength(); bool bProcessed = false; diff --git a/vcl/unx/generic/printer/printerinfomanager.cxx b/vcl/unx/generic/printer/printerinfomanager.cxx index f4eb32eb8330..5dd8bfe7007c 100644 --- a/vcl/unx/generic/printer/printerinfomanager.cxx +++ b/vcl/unx/generic/printer/printerinfomanager.cxx @@ -230,15 +230,13 @@ void PrinterInfoManager::initialize() if (!aValue.isEmpty()) m_aGlobalDefaults.m_eOrientation = aValue.equalsIgnoreAsciiCase("Landscape") ? orientation::Landscape : orientation::Portrait; - using comphelper::string::getToken; - aValue = aConfig.ReadKey( "MarginAdjust" ); if (!aValue.isEmpty()) { - m_aGlobalDefaults.m_nLeftMarginAdjust = getToken(aValue, 0, ',').toInt32(); - m_aGlobalDefaults.m_nRightMarginAdjust = getToken(aValue, 1, ',').toInt32(); - m_aGlobalDefaults.m_nTopMarginAdjust = getToken(aValue, 2, ',').toInt32(); - m_aGlobalDefaults.m_nBottomMarginAdjust = getToken(aValue, 3, ',').toInt32(); + m_aGlobalDefaults.m_nLeftMarginAdjust = aValue.getToken(0, ',').toInt32(); + m_aGlobalDefaults.m_nRightMarginAdjust = aValue.getToken(1, ',').toInt32(); + m_aGlobalDefaults.m_nTopMarginAdjust = aValue.getToken(2, ',').toInt32(); + m_aGlobalDefaults.m_nBottomMarginAdjust = aValue.getToken(3, ',').toInt32(); } aValue = aConfig.ReadKey( "ColorDepth", "24" ); @@ -415,15 +413,13 @@ void PrinterInfoManager::initialize() if (!aValue.isEmpty()) aPrinter.m_aInfo.m_eOrientation = aValue.equalsIgnoreAsciiCase("Landscape") ? orientation::Landscape : orientation::Portrait; - using comphelper::string::getToken; - aValue = aConfig.ReadKey( "MarginAdjust" ); if (!aValue.isEmpty()) { - aPrinter.m_aInfo.m_nLeftMarginAdjust = getToken(aValue, 0, ',' ).toInt32(); - aPrinter.m_aInfo.m_nRightMarginAdjust = getToken(aValue, 1, ',' ).toInt32(); - aPrinter.m_aInfo.m_nTopMarginAdjust = getToken(aValue, 2, ',' ).toInt32(); - aPrinter.m_aInfo.m_nBottomMarginAdjust = getToken(aValue, 3, ',' ).toInt32(); + aPrinter.m_aInfo.m_nLeftMarginAdjust = aValue.getToken(0, ',' ).toInt32(); + aPrinter.m_aInfo.m_nRightMarginAdjust = aValue.getToken(1, ',' ).toInt32(); + aPrinter.m_aInfo.m_nTopMarginAdjust = aValue.getToken(2, ',' ).toInt32(); + aPrinter.m_aInfo.m_nBottomMarginAdjust = aValue.getToken(3, ',' ).toInt32(); } aValue = aConfig.ReadKey( "ColorDepth" ); diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx index e2af3e5fb751..a9c42cf90576 100644 --- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx +++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx @@ -726,7 +726,7 @@ bool lcl_matchFilter( const rtl::OUString& rFilter, const rtl::OUString& rExt ) for ( int n = 0; n != nCount; ++n ) { - const rtl::OUString aToken = comphelper::string::getToken( rFilter, n, ';' ); + const rtl::OUString aToken = rFilter.getToken( n, ';' ); if ( aToken == rExt ) return true; } |