summaryrefslogtreecommitdiff
path: root/dbaccess/source
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-08 05:41:38 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-08 05:42:05 +0100
commit19020191cbf3e3c7a7bf98d0958d86d931ae687b (patch)
tree63533a5d8d9929602cd894391a0e4b232451ba69 /dbaccess/source
parent9c34ac28d6b7a8297674f4334c43d93a064f3f3d (diff)
simplify some compareTo
Change-Id: Ib63cfac8b5f129f31534020fd634750e846e3b98
Diffstat (limited to 'dbaccess/source')
-rw-r--r--dbaccess/source/filter/xml/dbloader2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/filter/xml/dbloader2.cxx b/dbaccess/source/filter/xml/dbloader2.cxx
index 12df6d797472..38def3a62bd1 100644
--- a/dbaccess/source/filter/xml/dbloader2.cxx
+++ b/dbaccess/source/filter/xml/dbloader2.cxx
@@ -157,7 +157,7 @@ OUString SAL_CALL DBTypeDetection::detect( ::com::sun::star::uno::Sequence< ::co
xStorageProperties->getPropertyValue( INFO_MEDIATYPE ) >>= sMediaType;
if ( sMediaType == MIMETYPE_OASIS_OPENDOCUMENT_DATABASE_ASCII || sMediaType == MIMETYPE_VND_SUN_XML_BASE_ASCII )
{
- if ( bStreamFromDescr && sURL.compareTo( OUString( "private:stream" ), 14 ) != COMPARE_EQUAL )
+ if ( bStreamFromDescr && (sURL != "private:stream") )
{
// After fixing of the i88522 issue ( use the new file locking for database files ) the stream from the type detection can be used further
// for now the file should be reopened to have read/write access