diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-11-18 23:30:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-11-19 07:09:58 +0100 |
commit | 19926ed35ebb623fc896942b1f232b83edf1fc1e (patch) | |
tree | e69e925050fe667aa746494126abfa3336ce16fe /sc | |
parent | 8f79f590662145b054661846e018a4fc1837db8a (diff) |
loplugin:stringview: Flag empty string converted to string view
Change-Id: Idf412dc5f235230512160cb4fb7e1a00baa1cfa7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106085
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/vba/vbaapplication.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaaxis.cxx | 50 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaformat.cxx | 50 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaformatcondition.cxx | 8 | ||||
-rw-r--r-- | sc/source/ui/vba/vbaformatconditions.cxx | 16 | ||||
-rw-r--r-- | sc/source/ui/vba/vbapagebreaks.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbarange.cxx | 24 | ||||
-rw-r--r-- | sc/source/ui/vba/vbastyle.cxx | 14 | ||||
-rw-r--r-- | sc/source/ui/vba/vbastyles.cxx | 8 |
9 files changed, 88 insertions, 88 deletions
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx index c4cac4b68471..ced6d0c70eb3 100644 --- a/sc/source/ui/vba/vbaapplication.cxx +++ b/sc/source/ui/vba/vbaapplication.cxx @@ -1177,7 +1177,7 @@ uno::Reference< excel::XRange > SAL_CALL ScVbaApplication::Intersect( const uno::Any& rArg27, const uno::Any& rArg28, const uno::Any& rArg29, const uno::Any& rArg30 ) { if( !rArg1.is() || !rArg2.is() ) - DebugHelper::basicexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_BAD_PARAMETER, {} ); // initialize the result list with 1st parameter, join its ranges together ListOfScRange aList; @@ -1230,7 +1230,7 @@ uno::Reference< excel::XRange > SAL_CALL ScVbaApplication::Union( const uno::Any& rArg27, const uno::Any& rArg28, const uno::Any& rArg29, const uno::Any& rArg30 ) { if( !rArg1.is() || !rArg2.is() ) - DebugHelper::basicexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_BAD_PARAMETER, {} ); ListOfScRange aList; lclAddToListOfScRange( aList, uno::Any( rArg1 ) ); diff --git a/sc/source/ui/vba/vbaaxis.cxx b/sc/source/ui/vba/vbaaxis.cxx index fa272d291d08..f9e8d25c35df 100644 --- a/sc/source/ui/vba/vbaaxis.cxx +++ b/sc/source/ui/vba/vbaaxis.cxx @@ -47,7 +47,7 @@ ScVbaAxis::isValueAxis() { if ( getType() == xlCategory ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return true; } @@ -103,13 +103,13 @@ ScVbaAxis::getAxisTitle( ) void SAL_CALL ScVbaAxis::setDisplayUnit( ::sal_Int32 /*DisplayUnit*/ ) { - DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, {}); } ::sal_Int32 SAL_CALL ScVbaAxis::getDisplayUnit( ) { - DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, {}); return -1; } @@ -143,7 +143,7 @@ ScVbaAxis::setCrosses( ::sal_Int32 _nCrosses ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } ::sal_Int32 SAL_CALL @@ -175,7 +175,7 @@ ScVbaAxis::getCrosses( ) } catch (uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } return nCrosses; } @@ -205,7 +205,7 @@ ScVbaAxis::getCrossesAt( ) } catch (uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return fCrosses; } @@ -285,7 +285,7 @@ ScVbaAxis::setMinorUnit( double _fMinorUnit ) } catch (uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -300,7 +300,7 @@ ScVbaAxis::getMinorUnit( ) } catch (uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return fMinor; } @@ -315,7 +315,7 @@ ScVbaAxis::setMinorUnitIsAuto( sal_Bool _bMinorUnitIsAuto ) } catch (uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } } @@ -332,7 +332,7 @@ ScVbaAxis::getMinorUnitIsAuto( ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return bIsAuto; } @@ -340,13 +340,13 @@ ScVbaAxis::getMinorUnitIsAuto( ) void SAL_CALL ScVbaAxis::setReversePlotOrder( sal_Bool /*ReversePlotOrder*/ ) { - DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, {}); } sal_Bool SAL_CALL ScVbaAxis::getReversePlotOrder( ) { - DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, {}); return false; } @@ -362,7 +362,7 @@ ScVbaAxis::setMajorUnit( double _fMajorUnit ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -377,7 +377,7 @@ ScVbaAxis::getMajorUnit( ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } return fMax; } @@ -394,7 +394,7 @@ ScVbaAxis::setMajorUnitIsAuto( sal_Bool _bMajorUnitIsAuto ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -411,7 +411,7 @@ ScVbaAxis::getMajorUnitIsAuto( ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return bIsAuto; } @@ -428,7 +428,7 @@ ScVbaAxis::setMaximumScale( double _fMaximumScale ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -445,7 +445,7 @@ ScVbaAxis::getMaximumScale( ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return fMax; @@ -462,7 +462,7 @@ ScVbaAxis::setMaximumScaleIsAuto( sal_Bool _bMaximumScaleIsAuto ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -477,7 +477,7 @@ ScVbaAxis::getMaximumScaleIsAuto( ) } catch (const uno::Exception&) { - DebugHelper::basicexception( ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_METHOD_FAILED, {} ); } return bIsAuto; } @@ -492,7 +492,7 @@ ScVbaAxis::setMinimumScale( double _fMinimumScale ) } catch ( uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } } @@ -524,7 +524,7 @@ ScVbaAxis::setMinimumScaleIsAuto( sal_Bool _bMinimumScaleIsAuto ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -541,7 +541,7 @@ ScVbaAxis::getMinimumScaleIsAuto( ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return bIsAuto; } @@ -575,7 +575,7 @@ ScVbaAxis::setScaleType( ::sal_Int32 _nScaleType ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -597,7 +597,7 @@ ScVbaAxis::getScaleType( ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return nScaleType; } diff --git a/sc/source/ui/vba/vbaformat.cxx b/sc/source/ui/vba/vbaformat.cxx index f44467d7cd02..94048fd73f31 100644 --- a/sc/source/ui/vba/vbaformat.cxx +++ b/sc/source/ui/vba/vbaformat.cxx @@ -78,7 +78,7 @@ ScVbaFormat< Ifc... >::ScVbaFormat( const uno::Reference< XHelperInterface >& xP } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } } @@ -116,7 +116,7 @@ ScVbaFormat< Ifc... >::setVerticalAlignment( const uno::Any& _oAlignment) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -152,7 +152,7 @@ ScVbaFormat< Ifc... >::getVerticalAlignment( ) } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return aResult; } @@ -192,7 +192,7 @@ ScVbaFormat< Ifc... >::setHorizontalAlignment( const uno::Any& HorizontalAlignme } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } } @@ -233,7 +233,7 @@ ScVbaFormat< Ifc... >::getHorizontalAlignment( ) } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } return NRetAlignment; } @@ -272,7 +272,7 @@ ScVbaFormat< Ifc... >::setOrientation( const uno::Any& _aOrientation ) } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } } template< typename... Ifc > @@ -309,7 +309,7 @@ ScVbaFormat< Ifc... >::getOrientation( ) } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return NRetOrientation; } @@ -324,7 +324,7 @@ ScVbaFormat< Ifc... >::setWrapText( const uno::Any& _aWrapText ) } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } } @@ -343,7 +343,7 @@ ScVbaFormat< Ifc... >::getWrapText( ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } return aWrap; } @@ -402,7 +402,7 @@ ScVbaFormat< Ifc... >::getNumberFormatLocal( ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return aRet; @@ -433,7 +433,7 @@ ScVbaFormat< Ifc... >::setNumberFormatLocal( const uno::Any& _oLocalFormatString } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } } @@ -463,7 +463,7 @@ ScVbaFormat< Ifc... >::setNumberFormat( const uno::Any& _oFormatString ) } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -488,7 +488,7 @@ ScVbaFormat< Ifc... >::setIndentLevel( const uno::Any& _aLevel ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -511,7 +511,7 @@ ScVbaFormat< Ifc... >::getIndentLevel( ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return NRetIndentLevel; } @@ -533,7 +533,7 @@ ScVbaFormat< Ifc... >::setLocked( const uno::Any& _aLocked ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } } @@ -553,7 +553,7 @@ ScVbaFormat< Ifc... >::setFormulaHidden( const uno::Any& FormulaHidden ) } catch (const uno::Exception&) { - DebugHelper::basicexception( ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_METHOD_FAILED, {} ); } } @@ -586,7 +586,7 @@ ScVbaFormat< Ifc... >::getLocked( ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return aCellProtection; } @@ -619,7 +619,7 @@ ScVbaFormat< Ifc... >::getFormulaHidden( ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return aBoolRet; } @@ -634,7 +634,7 @@ ScVbaFormat< Ifc... >::setShrinkToFit( const uno::Any& ShrinkToFit ) } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, {} ); } } @@ -652,7 +652,7 @@ ScVbaFormat< Ifc... >::getShrinkToFit( ) } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, {}); } return aRet; } @@ -682,13 +682,13 @@ ScVbaFormat< Ifc... >::setReadingOrder( const uno::Any& ReadingOrder ) aVal <<= sal_Int16(text::WritingMode_LR_TB); break; default: - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } mxPropertySet->setPropertyValue( SC_UNONAME_WRITING, aVal ); } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -720,7 +720,7 @@ ScVbaFormat< Ifc... >::getReadingOrder( ) } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, {}); } return NRetReadingOrder; @@ -748,7 +748,7 @@ ScVbaFormat< Ifc... >::getNumberFormat( ) } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return aFormat; } @@ -765,7 +765,7 @@ ScVbaFormat< Ifc... >::isAmbiguous(const OUString& _sPropertyName) } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return bResult; } diff --git a/sc/source/ui/vba/vbaformatcondition.cxx b/sc/source/ui/vba/vbaformatcondition.cxx index 645d6e5f598f..56f387608218 100644 --- a/sc/source/ui/vba/vbaformatcondition.cxx +++ b/sc/source/ui/vba/vbaformatcondition.cxx @@ -31,7 +31,7 @@ lcl_getScVbaFormatConditionsPtr( const uno::Reference< excel::XFormatConditions { ScVbaFormatConditions* pFormatConditions = static_cast< ScVbaFormatConditions* >( xFormatConditions.get() ); if ( !pFormatConditions ) - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); return pFormatConditions; } @@ -69,7 +69,7 @@ ScVbaFormatCondition::Modify( ::sal_Int32 _nType, const uno::Any& _aOperator, co } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } } @@ -103,7 +103,7 @@ ScVbaFormatCondition::retrieveAPIType(sal_Int32 _nVBAType, const uno::Reference< aAPIType = sheet::ConditionOperator_NONE; break; default: - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } return aAPIType; } @@ -134,7 +134,7 @@ ScVbaFormatCondition::notifyRange() } catch (uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } } diff --git a/sc/source/ui/vba/vbaformatconditions.cxx b/sc/source/ui/vba/vbaformatconditions.cxx index d53f4c33d04c..a4970f58aac7 100644 --- a/sc/source/ui/vba/vbaformatconditions.cxx +++ b/sc/source/ui/vba/vbaformatconditions.cxx @@ -38,7 +38,7 @@ ScVbaFormatConditions::Delete( ) { ScVbaStyles* pStyles = static_cast< ScVbaStyles* >( mxStyles.get() ); if ( !pStyles ) - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); sal_Int32 nCount = mxSheetConditionalEntries->getCount(); for (sal_Int32 i = nCount - 1; i >= 0; i--) { @@ -50,7 +50,7 @@ ScVbaFormatConditions::Delete( ) } catch (uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -198,7 +198,7 @@ ScVbaFormatConditions::Add( ::sal_Int32 _nType, const uno::Any& _aOperator, cons catch (uno::Exception& ) { } - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); return xFormatCondition; } @@ -217,7 +217,7 @@ ScVbaFormatConditions::notifyRange() } catch (uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -227,7 +227,7 @@ ScVbaFormatConditions::getA1Formula(const css::uno::Any& _aFormula) // #TODO, #FIXME hook-in proper formula conversion detection & logic OUString sFormula; if ( !( _aFormula >>= sFormula ) ) - DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, {} ); return sFormula; } @@ -236,7 +236,7 @@ ScVbaFormatConditions::getStyleName() { ScVbaStyles* pStyles = static_cast< ScVbaStyles* >( mxStyles.get() ); if ( !pStyles ) - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); uno::Sequence< OUString > sCellStyleNames = pStyles->getStyleNames(); return ContainerUtilities::getUniqueName(sCellStyleNames, "Excel_CondFormat", "_"); } @@ -257,7 +257,7 @@ ScVbaFormatConditions::removeFormatCondition( const OUString& _sStyleName, bool { ScVbaStyles* pStyles = static_cast< ScVbaStyles* >( mxStyles.get() ); if ( !pStyles ) - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); pStyles->Delete( _sStyleName ); } return; @@ -266,7 +266,7 @@ ScVbaFormatConditions::removeFormatCondition( const OUString& _sStyleName, bool } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } diff --git a/sc/source/ui/vba/vbapagebreaks.cxx b/sc/source/ui/vba/vbapagebreaks.cxx index fff5924960a5..c8c142df8702 100644 --- a/sc/source/ui/vba/vbapagebreaks.cxx +++ b/sc/source/ui/vba/vbapagebreaks.cxx @@ -173,7 +173,7 @@ uno::Any RangePageBreaks::Add( const css::uno::Any& Before ) Before >>= xRange; if( !xRange.is() ) { - DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, {}); } sal_Int32 nAPIRowColIndex = getAPIStartofRange( xRange ); diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 9e230ff363a0..323a4f394540 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -4723,7 +4723,7 @@ ScVbaRange::Autofit() // if the range is a not a row or column range autofit will // throw an error if ( !( mbIsColumns || mbIsRows ) ) - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); ScDocShell* pDocShell = getDocShellFromRange( mxRange ); if ( !pDocShell ) return; @@ -5150,7 +5150,7 @@ ScVbaRange::Item( const uno::Any& row, const uno::Any& column ) if ( mbIsRows || mbIsColumns ) { if ( column.hasValue() ) - DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, {} ); uno::Reference< excel::XRange > xRange; if ( mbIsColumns ) xRange = Columns( row ); @@ -5182,7 +5182,7 @@ ScVbaRange::AutoOutline( ) xSheetOutline->autoOutline( thisAddress ); } else - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } void SAL_CALL @@ -5373,13 +5373,13 @@ ScVbaRange::SpecialCells( const uno::Any& _oType, const uno::Any& _oValue) uno::Reference< excel::XRange > xUsedRange( getWorksheet()->getUsedRange() ); sal_Int32 nType = 0; if ( !( _oType >>= nType ) ) - DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, {} ); switch(nType) { case excel::XlCellType::xlCellTypeSameFormatConditions: case excel::XlCellType::xlCellTypeAllValidation: case excel::XlCellType::xlCellTypeSameValidation: - DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, {}); break; case excel::XlCellType::xlCellTypeBlanks: case excel::XlCellType::xlCellTypeComments: @@ -5435,11 +5435,11 @@ ScVbaRange::SpecialCells( const uno::Any& _oType, const uno::Any& _oValue) break; } default: - DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, {} ); break; } if ( !pRangeToUse ) - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); return pRangeToUse->SpecialCellsImpl( nType, _oValue ); } @@ -5466,7 +5466,7 @@ static sal_Int32 lcl_getFormulaResultFlags(const uno::Any& aType) nRes = sheet::FormulaResult::STRING; break; default: - DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, {} ); } return nRes; } @@ -5487,7 +5487,7 @@ ScVbaRange::SpecialCellsImpl( sal_Int32 nType, const uno::Any& _oValue) case excel::XlCellType::xlCellTypeSameValidation: // Shouldn't get here ( should be filtered out by // ScVbaRange::SpecialCells() - DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, {}); break; case excel::XlCellType::xlCellTypeBlanks: xLocSheetCellRanges = xQuery->queryEmptyCells(); @@ -5511,7 +5511,7 @@ ScVbaRange::SpecialCellsImpl( sal_Int32 nType, const uno::Any& _oValue) xLocSheetCellRanges = xQuery->queryVisibleCells(); break; default: - DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, {} ); break; } if (xLocSheetCellRanges.is()) @@ -5591,7 +5591,7 @@ ScVbaRange::Subtotal( ::sal_Int32 _nGroupBy, ::sal_Int32 _nFunction, const uno:: aColumns[i].Function = sheet::GeneralFunction_VARP; break; default: - DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, OUString()) ; + DebugHelper::basicexception(ERRCODE_BASIC_BAD_PARAMETER, {}) ; return; } } @@ -5600,7 +5600,7 @@ ScVbaRange::Subtotal( ::sal_Int32 _nGroupBy, ::sal_Int32 _nFunction, const uno:: } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } diff --git a/sc/source/ui/vba/vbastyle.cxx b/sc/source/ui/vba/vbastyle.cxx index 3bdf2ad24279..fa026a907f62 100644 --- a/sc/source/ui/vba/vbastyle.cxx +++ b/sc/source/ui/vba/vbastyle.cxx @@ -52,7 +52,7 @@ void ScVbaStyle::initialise() uno::Reference< lang::XServiceInfo > xServiceInfo( mxPropertySet, uno::UNO_QUERY_THROW ); if ( !xServiceInfo->supportsService("com.sun.star.style.CellStyle") ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } mxStyle.set( mxPropertySet, uno::UNO_QUERY_THROW ); @@ -72,7 +72,7 @@ ScVbaStyle::ScVbaStyle( const uno::Reference< ov::XHelperInterface >& xParent, } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -88,7 +88,7 @@ ScVbaStyle::ScVbaStyle( const uno::Reference< XHelperInterface >& xParent, } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -133,7 +133,7 @@ ScVbaStyle::getNameLocal() } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString() ); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {} ); } return sName; } @@ -147,20 +147,20 @@ ScVbaStyle::Delete() } catch (const uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } void SAL_CALL ScVbaStyle::setMergeCells( const uno::Any& /*MergeCells*/ ) { - DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, {}); } uno::Any SAL_CALL ScVbaStyle::getMergeCells( ) { - DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_NOT_IMPLEMENTED, {}); return uno::Any(); } diff --git a/sc/source/ui/vba/vbastyles.cxx b/sc/source/ui/vba/vbastyles.cxx index 0a1e722247e1..316bc26b7481 100644 --- a/sc/source/ui/vba/vbastyles.cxx +++ b/sc/source/ui/vba/vbastyles.cxx @@ -50,7 +50,7 @@ ScVbaStyles::ScVbaStyles( const uno::Reference< XHelperInterface >& xParent, } catch (uno::Exception& ) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } @@ -143,7 +143,7 @@ ScVbaStyles::Add( const OUString& _sName, const uno::Any& _aBasedOn ) } else { - DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, {}); } } @@ -161,7 +161,7 @@ ScVbaStyles::Add( const OUString& _sName, const uno::Any& _aBasedOn ) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } return aRet; } @@ -176,7 +176,7 @@ ScVbaStyles::Delete(const OUString& _sStyleName) } catch (const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } |