diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-19 08:57:07 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-19 08:57:07 +0200 |
commit | be878d7cc54cbe3dc1de410e9ff760fe353ce56a (patch) | |
tree | a0c181a9072d5c9700acaaa3c7a4b284263bb5ec /compilerplugins | |
parent | 96710f8e466d44047ea4ac9cb8c70dc7664f5c73 (diff) |
improve warning message in passstringbyref compiler plugin
Change-Id: Ia8470bbd04c841e6c44c182493fede3dc312f635
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/passstringbyref.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/passstringbyref.cxx b/compilerplugins/clang/passstringbyref.cxx index 610796936493..50e1a859fb11 100644 --- a/compilerplugins/clang/passstringbyref.cxx +++ b/compilerplugins/clang/passstringbyref.cxx @@ -49,14 +49,14 @@ bool PassStringByRef::VisitFunctionDecl(const FunctionDecl * functionDecl) { if (typeName == "class rtl::OUString") { report( DiagnosticsEngine::Warning, - "passing OUString by value, rather pass by reference", + "passing OUString by value, rather pass by reference .e.g. 'const OUString&'", pvDecl->getSourceRange().getBegin()) << pvDecl->getSourceRange(); } else if (typeName == "class rtl::OString") { report( DiagnosticsEngine::Warning, - "passing OString by value, rather pass by reference", + "passing OString by value, rather pass by reference .e.g. 'const OString&'", pvDecl->getSourceRange().getBegin()) << pvDecl->getSourceRange(); } |