vcl/source/control/fmtfield.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f3db33ce067a9ab9b5d060880d5ce6645a667a81 Author: Pranam Lashkari <lpra...@collabora.com> AuthorDate: Mon Jan 29 20:06:51 2024 +0530 Commit: Pranam Lashkari <lpra...@collabora.com> CommitDate: Tue Jan 30 08:16:30 2024 +0100 LOK: fixed unused variable warning Change-Id: I70d82980979540cc998feb12f7bd262c28e44a20 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162692 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Pranam Lashkari <lpra...@collabora.com> diff --git a/vcl/source/control/fmtfield.cxx b/vcl/source/control/fmtfield.cxx index e4b1f1dbfb46..5419164d7c65 100644 --- a/vcl/source/control/fmtfield.cxx +++ b/vcl/source/control/fmtfield.cxx @@ -1361,7 +1361,7 @@ void FormattedField::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter) SpinField::DumpAsPropertyTree(rJsonWriter); Formatter& rFormatter = GetFormatter(); - if (weld::TimeFormatter* timeFormatter = dynamic_cast<weld::TimeFormatter*>(&rFormatter)) + if (dynamic_cast<weld::TimeFormatter*>(&rFormatter)) { // weld::TimeFormatter uses h24 format rJsonWriter.put("type", "time");