summaryrefslogtreecommitdiff
path: root/vcl/source/outdev
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-05-12 00:30:12 +0200
committerJan Holesovsky <kendy@collabora.com>2014-05-12 06:51:13 +0200
commit07e7e545960b688dcc63c55a6465c95307f19136 (patch)
tree20e40df143e52e1fd10f9920b9650b9d9bb19f06 /vcl/source/outdev
parent11eb3330ea72d994ab2b901a45a3417432364972 (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.cxx7
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;
}