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 /sw/source/ui | |
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 'sw/source/ui')
-rw-r--r-- | sw/source/ui/vba/vbadocument.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbafield.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaoptions.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaparagraphformat.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbarange.cxx | 4 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaselection.cxx | 8 | ||||
-rw-r--r-- | sw/source/ui/vba/vbastyles.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbatabstops.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/vba/vbaview.cxx | 6 |
9 files changed, 15 insertions, 15 deletions
diff --git a/sw/source/ui/vba/vbadocument.cxx b/sw/source/ui/vba/vbadocument.cxx index fa93e0bcd10f..c7cfe8446cb0 100644 --- a/sw/source/ui/vba/vbadocument.cxx +++ b/sw/source/ui/vba/vbadocument.cxx @@ -163,7 +163,7 @@ SwVbaDocument::Range( const uno::Any& rStart, const uno::Any& rEnd ) } catch(const uno::Exception&) { - DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_METHOD_FAILED, {}); } } return uno::Reference< word::XRange >( new SwVbaRange( this, mxContext, mxTextDocument, xStart, xEnd ) ); diff --git a/sw/source/ui/vba/vbafield.cxx b/sw/source/ui/vba/vbafield.cxx index 9e4adddfe4cb..f9c35ca890e5 100644 --- a/sw/source/ui/vba/vbafield.cxx +++ b/sw/source/ui/vba/vbafield.cxx @@ -366,7 +366,7 @@ uno::Reference< text::XTextField > SwVbaFields::Create_Field_FileName( const OUS aReadParam.SkipToNextToken(); break; default: - DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, {}); break; } } diff --git a/sw/source/ui/vba/vbaoptions.cxx b/sw/source/ui/vba/vbaoptions.cxx index 72fd56cdc7c2..7b02b4794322 100644 --- a/sw/source/ui/vba/vbaoptions.cxx +++ b/sw/source/ui/vba/vbaoptions.cxx @@ -82,7 +82,7 @@ SwVbaOptions::DefaultFilePath( sal_Int32 _path ) } default: { - DebugHelper::basicexception( ERRCODE_BASIC_NOT_IMPLEMENTED, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_NOT_IMPLEMENTED, {} ); break; } } diff --git a/sw/source/ui/vba/vbaparagraphformat.cxx b/sw/source/ui/vba/vbaparagraphformat.cxx index 9cf7ea43c4a1..74742af3867e 100644 --- a/sw/source/ui/vba/vbaparagraphformat.cxx +++ b/sw/source/ui/vba/vbaparagraphformat.cxx @@ -540,7 +540,7 @@ sal_Int32 SwVbaParagraphFormat::getMSWordAlignment( style::ParagraphAdjust _alig } default: { - DebugHelper::basicexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_BAD_PARAMETER, {} ); } } return wdAlignment; diff --git a/sw/source/ui/vba/vbarange.cxx b/sw/source/ui/vba/vbarange.cxx index 42668fb591e5..88f54a1d43c0 100644 --- a/sw/source/ui/vba/vbarange.cxx +++ b/sw/source/ui/vba/vbarange.cxx @@ -190,10 +190,10 @@ void SAL_CALL SwVbaRange::InsertBreak(const uno::Any& _breakType) case word::WdBreakType::wdSectionBreakNextPage: case word::WdBreakType::wdSectionBreakOddPage: case word::WdBreakType::wdTextWrappingBreak: - DebugHelper::basicexception( ERRCODE_BASIC_NOT_IMPLEMENTED, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_NOT_IMPLEMENTED, {} ); break; default: - DebugHelper::basicexception( ERRCODE_BASIC_BAD_PARAMETER, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_BAD_PARAMETER, {} ); } if( eBreakType != style::BreakType_NONE ) diff --git a/sw/source/ui/vba/vbaselection.cxx b/sw/source/ui/vba/vbaselection.cxx index 83f5d491bd27..309227c30354 100644 --- a/sw/source/ui/vba/vbaselection.cxx +++ b/sw/source/ui/vba/vbaselection.cxx @@ -243,7 +243,7 @@ SwVbaSelection::Move( const uno::Any& _unit, const uno::Any& _count, const uno:: { if( nExtend == word::WdMovementType::wdExtend ) { - DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, {}); return; } NextCell( nCount, eDirection ); @@ -352,7 +352,7 @@ void SwVbaSelection::NextCell(sal_Int32 nCount, word::E_DIRECTION eDirection) xCursorProps->getPropertyValue("Cell") >>= xCell; if( !xTextTable.is() || !xCell.is() ) { - DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, {}); return; } uno::Reference< beans::XPropertySet > xCellProps( xCell, uno::UNO_QUERY_THROW ); @@ -384,7 +384,7 @@ void SwVbaSelection::NextCell(sal_Int32 nCount, word::E_DIRECTION eDirection) } default: { - DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, {}); return; } } @@ -550,7 +550,7 @@ uno::Reference< word::XRange > SAL_CALL SwVbaSelection::GoTo( const uno::Any& _w { sal_Int32 nWhat = 0; if( !( _what >>= nWhat ) ) - DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, OUString()); + DebugHelper::basicexception(ERRCODE_BASIC_BAD_ARGUMENT, {}); switch( nWhat ) { case word::WdGoToItem::wdGoToBookmark: diff --git a/sw/source/ui/vba/vbastyles.cxx b/sw/source/ui/vba/vbastyles.cxx index 75648be299f0..a65f2750f95a 100644 --- a/sw/source/ui/vba/vbastyles.cxx +++ b/sw/source/ui/vba/vbastyles.cxx @@ -336,7 +336,7 @@ SwVbaStyles::Item( const uno::Any& Index1, const uno::Any& Index2 ) break; } default: - DebugHelper::basicexception( ERRCODE_BASIC_INTERNAL_ERROR, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_INTERNAL_ERROR, {} ); } uno::Reference< style::XStyleFamiliesSupplier > xStyleSupplier( mxModel, uno::UNO_QUERY_THROW); uno::Reference< container::XNameAccess > xStylesAccess( xStyleSupplier->getStyleFamilies()->getByName( aStyleType ), uno::UNO_QUERY_THROW ); diff --git a/sw/source/ui/vba/vbatabstops.cxx b/sw/source/ui/vba/vbatabstops.cxx index 0c902a18d40a..c7e6655b5b8d 100644 --- a/sw/source/ui/vba/vbatabstops.cxx +++ b/sw/source/ui/vba/vbatabstops.cxx @@ -149,7 +149,7 @@ uno::Reference< word::XTabStop > SAL_CALL SwVbaTabStops::Add( float Position, co case word::WdTabAlignment::wdAlignTabBar: case word::WdTabAlignment::wdAlignTabList: { - DebugHelper::basicexception( ERRCODE_BASIC_NOT_IMPLEMENTED, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_NOT_IMPLEMENTED, {} ); break; } default: diff --git a/sw/source/ui/vba/vbaview.cxx b/sw/source/ui/vba/vbaview.cxx index 9d965addbbdd..4efeac437e81 100644 --- a/sw/source/ui/vba/vbaview.cxx +++ b/sw/source/ui/vba/vbaview.cxx @@ -313,7 +313,7 @@ uno::Reference< text::XTextRange > SwVbaView::getHFTextRange( sal_Int32 nType ) while( hasNextPage && ( xStyle == word::getCurrentPageStyle( mxModel ) ) ); if( !hasNextPage ) - DebugHelper::basicexception( ERRCODE_BASIC_BAD_ACTION, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_BAD_ACTION, {} ); } break; } @@ -353,7 +353,7 @@ uno::Reference< text::XTextRange > SwVbaView::getHFTextRange( sal_Int32 nType ) if( nType == word::WdSeekView::wdSeekEvenPagesFooter || nType == word::WdSeekView::wdSeekEvenPagesHeader ) { - DebugHelper::basicexception( ERRCODE_BASIC_BAD_ACTION, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_BAD_ACTION, {} ); } xText.set( xPageProps->getPropertyValue( aPropText ), uno::UNO_QUERY_THROW ); } @@ -361,7 +361,7 @@ uno::Reference< text::XTextRange > SwVbaView::getHFTextRange( sal_Int32 nType ) mxModel->unlockControllers(); if( !xText.is() ) { - DebugHelper::basicexception( ERRCODE_BASIC_INTERNAL_ERROR, OUString() ); + DebugHelper::basicexception( ERRCODE_BASIC_INTERNAL_ERROR, {} ); } uno::Reference< text::XTextRange > xTextRange = word::getFirstObjectPosition( xText ); return xTextRange; |