diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-03 23:09:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-05 10:14:46 +0100 |
commit | fb6ad98ef412571599280bd8df550c401cca1bc6 (patch) | |
tree | d3f1c4bc6b705a6bcf547900a0431618e96fa4e0 /extensions | |
parent | b640c63086495a6216ad2a63f2219380cbfb5dff (diff) |
drop intermediate XubString
Change-Id: I91ae7e9df90bde89f0a3f4b931c1ab150d31a3dc
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/dbpilots/commonpagesdbp.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extensions/source/dbpilots/commonpagesdbp.cxx b/extensions/source/dbpilots/commonpagesdbp.cxx index c5b0b2c2ecea..9efd6fd19198 100644 --- a/extensions/source/dbpilots/commonpagesdbp.cxx +++ b/extensions/source/dbpilots/commonpagesdbp.cxx @@ -143,15 +143,16 @@ namespace dbp OSL_VERIFY( rContext.xForm->getPropertyValue( ::rtl::OUString("CommandType") ) >>= nCommandType ); // search the entry of the given type with the given name - XubString sLookup( sCommand ); for ( sal_uInt16 nLookup = 0; nLookup < m_aTable.GetEntryCount(); ++nLookup ) { - if ( m_aTable.GetEntry( nLookup ) == sLookup ) + if (sCommand.equals(m_aTable.GetEntry(nLookup))) + { if ( reinterpret_cast< sal_IntPtr >( m_aTable.GetEntryData( nLookup ) ) == nCommandType ) { m_aTable.SelectEntryPos( nLookup ); break; } + } } } catch(const Exception&) |