[poppler] goo/gfile.cc poppler/GlobalParamsWin.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Tue Jan 9 18:44:25 UTC 2018
goo/gfile.cc | 6 +++---
poppler/GlobalParamsWin.cc | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 30ccee028213efcf3d3a103ae6003bdcd15e1126
Author: Albert Astals Cid <aacid at kde.org>
Date: Tue Jan 9 19:42:53 2018 +0100
Fix more Wmissing-field-initializer
by using the default initializer
diff --git a/goo/gfile.cc b/goo/gfile.cc
index e19a1532..e4c9b9fb 100644
--- a/goo/gfile.cc
+++ b/goo/gfile.cc
@@ -19,7 +19,7 @@
// Copyright (C) 2006 Kristian Høgsberg <krh at redhat.com>
// Copyright (C) 2008 Adam Batkin <adam at batkin.net>
// Copyright (C) 2008, 2010, 2012, 2013 Hib Eris <hib at hiberis.nl>
-// Copyright (C) 2009, 2012, 2014, 2017 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2009, 2012, 2014, 2017, 2018 Albert Astals Cid <aacid at kde.org>
// Copyright (C) 2009 Kovid Goyal <kovid at kovidgoyal.net>
// Copyright (C) 2013 Adam Reichold <adamreichold at myopera.com>
// Copyright (C) 2013, 2017 Adrian Johnson <ajohnson at redneon.com>
@@ -606,10 +606,10 @@ GooFile::GooFile(HANDLE handleA) : handle(handleA) {
int GooFile::read(char *buf, int n, Goffset offset) const {
DWORD m;
- LARGE_INTEGER largeInteger = {0};
+ LARGE_INTEGER largeInteger = {};
largeInteger.QuadPart = offset;
- OVERLAPPED overlapped = {0};
+ OVERLAPPED overlapped = {};
overlapped.Offset = largeInteger.LowPart;
overlapped.OffsetHigh = largeInteger.HighPart;
diff --git a/poppler/GlobalParamsWin.cc b/poppler/GlobalParamsWin.cc
index aca10a68..1734f6eb 100644
--- a/poppler/GlobalParamsWin.cc
+++ b/poppler/GlobalParamsWin.cc
@@ -9,7 +9,7 @@
// Copyright (C) 2013 Adam Reichold <adamreichold at myopera.com>
// Copyright (C) 2013 Dmytro Morgun <lztoad at gmail.com>
// Copyright (C) 2017 Christoph Cullmann <cullmann at kde.org>
- // Copyright (C) 2017 Albert Astals Cid <aacid at kde.org>
+ // Copyright (C) 2017, 2018 Albert Astals Cid <aacid at kde.org>
TODO: instead of a fixed mapping defined in displayFontTab, it could
scan the whole fonts directory, parse TTF files and build font
@@ -174,7 +174,7 @@ static const struct {
{"MS-Mincho", nullptr, "msmincho.ttf", gFalse},
{"Batang", nullptr, "batang.ttf", gFalse},
{"ArialUnicode", nullptr, "arialuni.ttf", gTrue},
- {nullptr}
+ { }
};
#define FONTS_SUBDIR "\\fonts"
More information about the poppler
mailing list