diff options
Diffstat (limited to 'unoxml/source/rdf/CURI.cxx')
-rw-r--r-- | unoxml/source/rdf/CURI.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/unoxml/source/rdf/CURI.cxx b/unoxml/source/rdf/CURI.cxx index cef43fa22488..bacc42697e1a 100644 --- a/unoxml/source/rdf/CURI.cxx +++ b/unoxml/source/rdf/CURI.cxx @@ -742,11 +742,13 @@ void SAL_CALL CURI::initialize(const css::uno::Sequence< css::uno::Any > & aArgu } // split parameter - sal_Int32 idx; - if ( ((idx = arg0.indexOf ('#')) < 0) - && ((idx = arg0.lastIndexOf('/')) < 0) - && ((idx = arg0.lastIndexOf(':')) < 0) ) - { + sal_Int32 idx = arg0.indexOf('#'); + if (idx < 0) + idx = arg0.lastIndexOf('/'); + if (idx < 0) + idx = arg0.lastIndexOf(':'); + if (idx < 0) + { throw css::lang::IllegalArgumentException( "CURI::initialize: argument not splittable: no separator [#/:]", *this, 0); } |