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>
This commit is contained in:
parent
652e4ee372
commit
949f2e0624
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue