hwpfilter/source/hbox.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 949f2e0624e798c4ee841585fb38e7d4b693e1d8 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Fri Jun 3 10:27:55 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Jun 3 13:26:37 2022 +0200 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 <sberg...@redhat.com> 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";