Kaydet (Commit) dd68ebad authored tarafından Stephan Bergmann's avatar Stephan Bergmann

More loplugin:cstylecast: svgio

auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files

Change-Id: Id7f822baae5e5f853308e52eba3633f879af3140
üst dead6b3a
...@@ -273,7 +273,7 @@ namespace svgio ...@@ -273,7 +273,7 @@ namespace svgio
if(!aBitmapEx.IsEmpty() && 0 != aBitmapEx.GetSizePixel().Width() && 0 != aBitmapEx.GetSizePixel().Height()) if(!aBitmapEx.IsEmpty() && 0 != aBitmapEx.GetSizePixel().Width() && 0 != aBitmapEx.GetSizePixel().Height())
{ {
// calculate centered unit size // calculate centered unit size
const double fAspectRatio = (double)aBitmapEx.GetSizePixel().Width() / (double)aBitmapEx.GetSizePixel().Height(); const double fAspectRatio = static_cast<double>(aBitmapEx.GetSizePixel().Width()) / static_cast<double>(aBitmapEx.GetSizePixel().Height());
if(basegfx::fTools::equal(fAspectRatio, 0.0)) if(basegfx::fTools::equal(fAspectRatio, 0.0))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment