Fix typos
Change-Id: Ice4b9f1b192d9649b7b8adbaa355e855d70610cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209885 Tested-by: Julien Nabet <serval2412@yahoo.fr> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
committed by
Julien Nabet
parent
c5cc182b91
commit
756a83c929
@@ -634,7 +634,7 @@ bool RefCounting::VisitReturnStmt(const ReturnStmt * returnStmt) {
|
||||
if (containsOWeakObjectSubclass(qt)) {
|
||||
report(
|
||||
DiagnosticsEngine::Warning,
|
||||
"new object of cppu::OWeakObject subclass %0 being returned via raw pointer, should be returned by via rtl::Reference",
|
||||
"new object of cppu::OWeakObject subclass %0 being returned via raw pointer, should be returned via rtl::Reference",
|
||||
returnStmt->getBeginLoc())
|
||||
<< qt
|
||||
<< returnStmt->getSourceRange();
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "plugin.hxx"
|
||||
|
||||
/**
|
||||
Find code where we are return a const value type from a function.
|
||||
Find code where we return a const value type from a function.
|
||||
Which makes no sense.
|
||||
Either we should return by non-const value, or by const ref.
|
||||
e.g.
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "compat.hxx"
|
||||
#include "plugin.hxx"
|
||||
|
||||
/** Look for static O*String and O*String[] which can be constepxr.
|
||||
/** Look for static O*String and O*String[] which can be constexpr.
|
||||
*/
|
||||
namespace {
|
||||
|
||||
|
||||
@@ -16,13 +16,13 @@ namespace test1
|
||||
sal_UCS4 GetChar();
|
||||
void f()
|
||||
{
|
||||
// expected-error@+1 {{loosing information assigning a sal_UCS4 value to a 'sal_Unicode' (aka 'char16_t') type [loplugin:narrow]}}
|
||||
// expected-error@+1 {{losing information assigning a sal_UCS4 value to a 'sal_Unicode' (aka 'char16_t') type [loplugin:narrow]}}
|
||||
sal_Unicode cChar = GetChar();
|
||||
(void)cChar;
|
||||
// no error expected
|
||||
sal_UCS4 cChar2 = GetChar();
|
||||
(void)cChar2;
|
||||
// expected-error@+1 {{loosing information assigning a sal_UCS4 value to a 'sal_Unicode' (aka 'char16_t') type [loplugin:narrow]}}
|
||||
// expected-error@+1 {{losing information assigning a sal_UCS4 value to a 'sal_Unicode' (aka 'char16_t') type [loplugin:narrow]}}
|
||||
cChar = GetChar();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user