[Libreoffice-commits] core.git: compilerplugins/clang
Noel Grandin
noel.grandin at collabora.co.uk
Wed May 10 07:18:24 UTC 2017
compilerplugins/clang/constantparam.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 4c0fb07f342d4bd0101fd5764f101f0adfc3001e
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date: Wed May 10 08:55:50 2017 +0200
add some some empty string names to constantparam loplugin
Change-Id: I8f67212271a798d544b7aad46f08890122cd5e18
diff --git a/compilerplugins/clang/constantparam.cxx b/compilerplugins/clang/constantparam.cxx
index b2d2ebd67395..59f3d45b92a9 100644
--- a/compilerplugins/clang/constantparam.cxx
+++ b/compilerplugins/clang/constantparam.cxx
@@ -216,7 +216,11 @@ std::string ConstantParam::getCallValue(const Expr* arg)
s = "\"\"";
else if (s == "OString()")
s = "\"\"";
- else if (s == "aEmptyOUStr")
+ else if (s == "aEmptyOUStr") //sw
+ s = "\"\"";
+ else if (s == "EMPTY_OUSTRING")//sc
+ s = "\"\"";
+ else if (s == "GetEmptyOUString()") //sc
s = "\"\"";
return s;
}
More information about the Libreoffice-commits
mailing list