diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-06-03 10:27:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-06-03 13:26:37 +0200 |
commit | 949f2e0624e798c4ee841585fb38e7d4b693e1d8 (patch) | |
tree | a272b00fad227fb5299109d2deb4c275324dd4a8 /hwpfilter/source | |
parent | 652e4ee372e8939f48f69411b6326b237c6d9e4b (diff) |
No need for a cast here when comparing against const int DATE_SIZE = 40
Change-Id: I2e9190ac08dc79fe624572ff3a96c32c18afce29
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135341
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'hwpfilter/source')
-rw-r--r-- | hwpfilter/source/hbox.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/hbox.cxx b/hwpfilter/source/hbox.cxx index 59b0285926fb..ea8d46e5f59e 100644 --- a/hwpfilter/source/hbox.cxx +++ b/hwpfilter/source/hbox.cxx @@ -148,7 +148,7 @@ hchar_string DateCode::GetString() format[DATE_SIZE - 1] = 0; fmt = format[0] ? format : defaultform; - for (; *fmt && (static_cast<int>(ret.size()) < DATE_SIZE); fmt++) + for (; *fmt && (ret.size() < DATE_SIZE); fmt++) { form = add_zero ? "%02d" : "%d"; |