diff options
author | Don Lewis <truckman@apache.org> | 2018-05-02 09:50:12 +0000 |
---|---|---|
committer | Don Lewis <truckman@apache.org> | 2018-05-02 09:50:12 +0000 |
commit | 164b33838fd16ab9c626fd8441f98948a2139f8a (patch) | |
tree | 41cb81c0428430adf0faee9eca8e3054baf9b233 /svtools | |
parent | a76717559adcc05a2c47c2ce843b20708d0e9eb5 (diff) |
Don't use !this as an alias for a constant that evaluates to false in
unconditional asserts. The former requires code to evaluate the
condition at runtime and also causes warnings from clang.
While here, translate the associated assert messages.
Notes
Notes:
ignore: obsolete
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/svrtf/svparser.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/svrtf/svparser.cxx b/svtools/source/svrtf/svparser.cxx index faaa0e8a29d7..9b44b661d903 100644 --- a/svtools/source/svrtf/svparser.cxx +++ b/svtools/source/svrtf/svparser.cxx @@ -167,7 +167,7 @@ void SvParser::SetSrcEncoding( rtl_TextEncoding eEnc ) } else { - DBG_ASSERT( !this, + DBG_ASSERT( sal_False, "SvParser::SetSrcEncoding: invalid source encoding" ); eSrcEnc = RTL_TEXTENCODING_DONTKNOW; } |