diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-02-05 17:31:52 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-06 04:38:48 +0000 |
commit | b524ace6f575a4ff1469fc637955328a511b9ff6 (patch) | |
tree | ad482bc78f47e2185bce3e89f7b09726d247379f /unoidl | |
parent | 3f6643b92742d775f5924a348d626ea695357825 (diff) |
loplugin:nullptr
seen on tinderbox Linux-F19-x86_64_14-with-check
Change-Id: Ica9c2707b43317f7dd1cf99440c6cdb7fe28e0bc
Reviewed-on: https://gerrit.libreoffice.org/33938
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unoidl')
-rw-r--r-- | unoidl/source/sourceprovider-scanner.l | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/unoidl/source/sourceprovider-scanner.l b/unoidl/source/sourceprovider-scanner.l index d9b60baf4a17..a4f636829784 100644 --- a/unoidl/source/sourceprovider-scanner.l +++ b/unoidl/source/sourceprovider-scanner.l @@ -45,7 +45,7 @@ namespace unoidl { namespace detail { static std::size_t sourceProviderScannerInput( SourceProviderScannerData * data, char * buffer, std::size_t size) { - assert(data != 0); + assert(data != nullptr); if (data->sourcePosition == data->sourceEnd) { return YY_NULL; } @@ -67,10 +67,10 @@ int nonZeroIntegerLiteral( char const * text, std::size_t length, sal_Int16 radix, sal_uInt64 * value, unoidl::detail::SourceProviderScannerData * data) { - assert(text != 0); + assert(text != nullptr); assert(length != 0); - assert(value != 0); - assert(data != 0); + assert(value != nullptr); + assert(data != nullptr); std::size_t n = length; switch (text[length - 1]) { case 'L': @@ -224,7 +224,7 @@ ALNUM {DIGIT}|{ALPHA} {DIGIT}*"."{DIGIT}+([Ee][+\-]?{DIGIT}+)?[Ff]? { rtl_math_ConversionStatus s; yylval->fval = rtl_math_stringToDouble( - yytext, yytext + yyleng, '.', 0, &s, 0); + yytext, yytext + yyleng, '.', 0, &s, nullptr); if (s == rtl_math_ConversionStatus_OutOfRange) { yyextra->errorMessage = "out-of-range floating-point literal " + OUString(yytext, yyleng, RTL_TEXTENCODING_ASCII_US); |