diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-05-12 00:30:12 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-05-12 06:51:13 +0200 |
commit | 07e7e545960b688dcc63c55a6465c95307f19136 (patch) | |
tree | 20e40df143e52e1fd10f9920b9650b9d9bb19f06 /vcl/source/outdev | |
parent | 11eb3330ea72d994ab2b901a45a3417432364972 (diff) |
coverity#1209003: Unchecked return value
Just silence coverity, the code is OK.
Change-Id: I0968800d67ab53cbbc942fa495d08adc4e94de0d
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r-- | vcl/source/outdev/font.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index 7a3431749fd7..541df8ef3817 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -292,8 +292,11 @@ SystemFontData OutputDevice::GetSysFontData(int nFallbacklevel) const SystemFontData aSysFontData; aSysFontData.nSize = sizeof(aSysFontData); - if (!mpGraphics) AcquireGraphics(); - if (mpGraphics) aSysFontData = mpGraphics->GetSysFontData(nFallbacklevel); + if (!mpGraphics) + (void) AcquireGraphics(); + + if (mpGraphics) + aSysFontData = mpGraphics->GetSysFontData(nFallbacklevel); return aSysFontData; } |