1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/textproc/stardict3/files/patch-dict__tests__t_lookupdata.cpp
Max Brazhnikov 5302808264 - Add patches to fix build with clang and recent gcc [1]
- Trim Makefile header

PR:		ports/172213 [1]
Submitted by:	mbsd <mbsd at isgroup.com.ua>
2012-12-11 12:33:58 +00:00

14 lines
561 B
C++

--- ./dict/tests/t_lookupdata.cpp.orig 2012-12-11 08:15:24.000000000 +0000
+++ ./dict/tests/t_lookupdata.cpp 2012-12-11 08:29:56.172016591 +0000
@@ -38,8 +38,8 @@
List dict_list;
libs.load(dict_list);
std::vector<InstantDictIndex> dictmask;
- std::vector<gchar *> reslist[dictmask.size()];
- if (libs.LookupData("letter", reslist, NULL, NULL, NULL, dictmask))
+ std::vector< std::vector<gchar *> > reslist(dictmask.size());
+ if (libs.LookupData("letter", &reslist[0], NULL, NULL, NULL, dictmask))
return EXIT_SUCCESS;
else
return EXIT_FAILURE;