diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-06-29 09:45:49 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-06-29 09:53:41 +0200 |
commit | e67c21ee0696cde7538016a813a5cbf39fb803b0 (patch) | |
tree | 841b1b4914a60a4de951ae7a39de7249762725cc /extensions | |
parent | 34dc6baf2c61f4127e6d8d89c92d8e4c37684ff5 (diff) |
Search for char instead of 1 char long string, when possible.
follow-up of a7674482254ee996b1c4fee60f3064778be369aa
Change-Id: I25f40c601454c092078307d931333af1bc1447ac
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/plugin/base/xplugin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/plugin/base/xplugin.cxx b/extensions/source/plugin/base/xplugin.cxx index 701974da9b7e..404e438af421 100644 --- a/extensions/source/plugin/base/xplugin.cxx +++ b/extensions/source/plugin/base/xplugin.cxx @@ -964,7 +964,7 @@ PluginInputStream::PluginInputStream( XPlugin_Impl* pPlugin, // set correct extension, some plugins need that OUString aName( m_aNPStream.url, strlen( m_aNPStream.url ), m_pPlugin->getTextEncoding() ); OUString aExtension; - sal_Int32 nSepInd = aName.lastIndexOf("."); + sal_Int32 nSepInd = aName.lastIndexOf('.'); if( nSepInd != -1 ) { aExtension = aName.copy( nSepInd + 1, aName.getLength() - nSepInd - 1 ); |