summaryrefslogtreecommitdiff
path: root/vcl/opengl/win/WinDeviceInfo.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-24 21:27:22 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-28 08:44:35 +0100
commit269a3e5c4d9a7b6a15fc7c86ef8bef1dbfe92f7c (patch)
tree12512769ec12b08c083710da28c980ac42d3283c /vcl/opengl/win/WinDeviceInfo.cxx
parent39deec236a3ea839b1a40d40f14eb3a2997cf096 (diff)
-Werror,-Wformat
"format specifies type 'int' but the argument has type 'DWORD' (aka 'unsigned long')" Change-Id: I96d239d2f674ffb30bcd596fc78d42a4af7316a1
Diffstat (limited to 'vcl/opengl/win/WinDeviceInfo.cxx')
-rw-r--r--vcl/opengl/win/WinDeviceInfo.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/opengl/win/WinDeviceInfo.cxx b/vcl/opengl/win/WinDeviceInfo.cxx
index 5fa5aaccf748..c3d9ba076742 100644
--- a/vcl/opengl/win/WinDeviceInfo.cxx
+++ b/vcl/opengl/win/WinDeviceInfo.cxx
@@ -63,10 +63,8 @@ void GetDLLVersion(const sal_Unicode* aDLLPath, OUString& aVersion)
vers[2] = HIWORD(fileVersLS);
vers[3] = LOWORD(fileVersLS);
- char buf[256];
- sprintf(buf, "%d.%d.%d.%d", vers[0], vers[1], vers[2], vers[3]);
- OString aBuf(buf);
- aVersion = OStringToOUString(aBuf, RTL_TEXTENCODING_UTF8);
+ aVersion = OUString::number(vers[0]) + "." + OUString::number(vers[1])
+ + "." + OUString::number(vers[2]) + "." + OUString::number(vers[3]);
}
/*