diff options
Diffstat (limited to 'xmlhelp/source/cxxhelp/provider')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.cxx | 7 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 8 |
2 files changed, 7 insertions, 8 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index 6cfa804e4f02..1c263ec7c306 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -607,7 +607,6 @@ KeywordInfo::KeywordElement::KeywordElement( Databases const *pDatabases, void KeywordInfo::KeywordElement::init( Databases const *pDatabases,helpdatafileproxy::Hdf* pHdf,const OUString& ids ) { - const sal_Unicode* idstr = ids.getStr(); std::vector< OUString > id,anchor; int idx = -1,k; while( ( idx = ids.indexOf( ';',k = ++idx ) ) != -1 ) @@ -616,12 +615,12 @@ void KeywordInfo::KeywordElement::init( Databases const *pDatabases,helpdatafile if( h < idx ) { // found an anchor - id.push_back( OUString( &idstr[k],h-k ) ); - anchor.push_back( OUString( &idstr[h+1],idx-h-1 ) ); + id.push_back( ids.copy( k, h-k ) ); + anchor.push_back( ids.copy( h+1, idx-h-1 ) ); } else { - id.push_back( OUString( &idstr[k],idx-k ) ); + id.push_back( ids.copy( k, idx-k ) ); anchor.push_back( OUString() ); } } diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx index 6ccdf3964527..5666592dd9f9 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx @@ -414,7 +414,7 @@ bool URLParameter::module() { sal_Int32 idx = 0,length = m_aExpr.getLength(); - while( idx < length && rtl::isAsciiAlphanumeric( (m_aExpr.getStr())[idx] ) ) + while( idx < length && rtl::isAsciiAlphanumeric( m_aExpr[idx] ) ) ++idx; if( idx != 0 ) @@ -434,10 +434,10 @@ bool URLParameter::name( bool modulePresent ) sal_Int32 length = m_aExpr.getLength(); - if( length != 0 && (m_aExpr.getStr())[0] == '/' ) + if( length != 0 && m_aExpr[0] == '/' ) { sal_Int32 idx = 1; - while( idx < length && (m_aExpr.getStr())[idx] != '?' ) + while( idx < length && m_aExpr[idx] != '?' ) ++idx; if( idx != 1 && ! modulePresent ) @@ -459,7 +459,7 @@ bool URLParameter::query() if( m_aExpr.isEmpty() ) return true; - else if( (m_aExpr.getStr())[0] == '?' ) + else if( m_aExpr[0] == '?' ) query_ = m_aExpr.copy( 1 ).trim(); else return false; |