summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbaselection.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-18 23:30:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-19 07:09:58 +0100
commit19926ed35ebb623fc896942b1f232b83edf1fc1e (patch)
treee69e925050fe667aa746494126abfa3336ce16fe /sw/source/ui/vba/vbaselection.cxx
parent8f79f590662145b054661846e018a4fc1837db8a (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/vba/vbaselection.cxx')
-rw-r--r--sw/source/ui/vba/vbaselection.cxx8
1 files changed, 4 insertions, 4 deletions
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: