diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-11 18:19:21 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-11 20:12:31 +0100 |
commit | 06ca3d89f4b9761f1bfea66a93f0fc7e0bab71a6 (patch) | |
tree | 1c977402e7b76e9662b9e44b4881f517a4b18018 /compilerplugins | |
parent | be73c64d11fd330f76b08fc75354164aba3ecc88 (diff) |
Drop ScGlobal::GetEmptyOUString() and EMPTY_OUSTRING
OUString default ctor already uses a static instance
(through rtl_uString_new), no need to have another
module-specific static.
Commit d8037ae18a297229d1b79f8f76331abfd548350d had
removed its sw counterpart some time ago.
Change-Id: I140fe13bc1f6b0cbe188e83e602fdebe995e467a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125061
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/constantparam.cxx | 6 | ||||
-rw-r--r-- | compilerplugins/clang/unusedfields.cxx | 6 | ||||
-rw-r--r-- | compilerplugins/clang/unusedvarsglobal.cxx | 6 | ||||
-rw-r--r-- | compilerplugins/clang/virtualdead.cxx | 6 |
4 files changed, 0 insertions, 24 deletions
diff --git a/compilerplugins/clang/constantparam.cxx b/compilerplugins/clang/constantparam.cxx index b176309539a4..da1ee7841ebe 100644 --- a/compilerplugins/clang/constantparam.cxx +++ b/compilerplugins/clang/constantparam.cxx @@ -221,12 +221,6 @@ std::string ConstantParam::getCallValue(const Expr* arg) s = "\"\""; else if (s == "OString()") s = "\"\""; - else if (s == "aEmptyOUStr") //sw - s = "\"\""; - else if (s == "EMPTY_OUSTRING")//sc - s = "\"\""; - else if (s == "GetEmptyOUString()") //sc - s = "\"\""; return s; } diff --git a/compilerplugins/clang/unusedfields.cxx b/compilerplugins/clang/unusedfields.cxx index ca4dca108dd6..ac260d7e82d1 100644 --- a/compilerplugins/clang/unusedfields.cxx +++ b/compilerplugins/clang/unusedfields.cxx @@ -406,12 +406,6 @@ bool UnusedFields::isSomeKindOfZero(const Expr* arg) return true; else if (s == "OString()") return true; - else if (s == "aEmptyOUStr") //sw - return true; - else if (s == "EMPTY_OUSTRING")//sc - return true; - else if (s == "GetEmptyOUString()") //sc - return true; return false; } diff --git a/compilerplugins/clang/unusedvarsglobal.cxx b/compilerplugins/clang/unusedvarsglobal.cxx index 508da0cb451f..9362a0117ac6 100644 --- a/compilerplugins/clang/unusedvarsglobal.cxx +++ b/compilerplugins/clang/unusedvarsglobal.cxx @@ -352,12 +352,6 @@ bool UnusedVarsGlobal::isSomeKindOfZero(const Expr* arg) return true; else if (s == "OString()") return true; - else if (s == "aEmptyOUStr") //sw - return true; - else if (s == "EMPTY_OUSTRING") //sc - return true; - else if (s == "GetEmptyOUString()") //sc - return true; return false; } diff --git a/compilerplugins/clang/virtualdead.cxx b/compilerplugins/clang/virtualdead.cxx index 53df3533b537..0d575ec8aef2 100644 --- a/compilerplugins/clang/virtualdead.cxx +++ b/compilerplugins/clang/virtualdead.cxx @@ -262,12 +262,6 @@ std::string VirtualDead::getCallValue(const Expr* arg) s = "\"\""; else if (s == "OString()") s = "\"\""; - else if (s == "aEmptyOUStr") //sw - s = "\"\""; - else if (s == "EMPTY_OUSTRING") //sc - s = "\"\""; - else if (s == "GetEmptyOUString()") //sc - s = "\"\""; if (s[0] == '"' || s[0] == '\'') return s; |