[Libreoffice-commits] core.git: reportdesign/source
Caolán McNamara
caolanm at redhat.com
Tue Sep 12 08:32:51 UTC 2017
reportdesign/source/ui/inspection/GeometryHandler.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit e609ac1e5ffe1a6882551660256d9625b630d346
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Sep 12 09:31:40 2017 +0100
coverity#1078469 silence Unchecked return value
Change-Id: I5c7c6328deb1c71f3a1214a4847ea97ef853c0d5
diff --git a/reportdesign/source/ui/inspection/GeometryHandler.cxx b/reportdesign/source/ui/inspection/GeometryHandler.cxx
index 9d6ddce537ae..e1cb88d609b1 100644
--- a/reportdesign/source/ui/inspection/GeometryHandler.cxx
+++ b/reportdesign/source/ui/inspection/GeometryHandler.cxx
@@ -1892,11 +1892,11 @@ bool GeometryHandler::impl_isDefaultFunction_nothrow( const uno::Reference< repo
utl::TextSearch aTextSearch( aSearchOptions);
sal_Int32 start = 0;
sal_Int32 end = sFormula.getLength();
- if ( aTextSearch.SearchForward(sFormula,&start,&end) && start == 0 && end == sFormula.getLength()) // default function found
+ if (aTextSearch.SearchForward(sFormula, &start, &end) && start == 0 && end == sFormula.getLength()) // default function found
{
aSearchOptions.searchString = "\\[[:alpha:]+([:space:]*[:alnum:]*)*\\]";
utl::TextSearch aDataSearch( aSearchOptions);
- aDataSearch.SearchForward(sFormula,&start,&end );
+ (void)aDataSearch.SearchForward(sFormula, &start, &end);
++start;
_rDataField = sFormula.copy(start,end-start-1);
_rsDefaultFunctionName = aIter->m_sName;
More information about the Libreoffice-commits
mailing list