From 51f7c69f4f07a00363c84097744f1a2bbcdc309a Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 10 Oct 2014 10:44:56 +0100 Subject: coverity#1240260 Operands don't affect result see can we silence these false positives coverity#1240259 Operands don't affect result coverity#1240254 Operands don't affect result coverity#1240264 Operands don't affect result coverity#1240267 Operands don't affect result Change-Id: Ieca40474c231e33a516b70f7693346ac73babd61 --- tools/source/generic/config.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/source') diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx index 913a1cfe3cb6..fdc73360d3dc 100644 --- a/tools/source/generic/config.cxx +++ b/tools/source/generic/config.cxx @@ -104,7 +104,7 @@ static sal_uInt8* ImplSysReadConfig( const OUString& rFileName, sal_uInt64 nPos = 0; if( aFile.getSize( nPos ) == ::osl::FileBase::E_None ) { - if (nPos > std::numeric_limits< std::size_t >::max()) { + if (nPos > SAL_MAX_SIZE) { aFile.close(); return 0; } -- cgit