mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-16 01:41:55 +00:00
replace array with variable size with vector,
this should help clang compiler to compile our source code
This commit is contained in:
@@ -209,8 +209,8 @@ void Library::LookupWithRule(const string &str, TSearchResultList& res_list)
|
||||
|
||||
void Library::LookupData(const string &str, TSearchResultList& res_list)
|
||||
{
|
||||
std::vector<gchar *> drl[ndicts()];
|
||||
if (!Libs::LookupData(str.c_str(), drl))
|
||||
std::vector<std::vector<gchar *> > drl(ndicts());
|
||||
if (!Libs::LookupData(str.c_str(), &drl[0]))
|
||||
return;
|
||||
for (int idict=0; idict<ndicts(); ++idict)
|
||||
for (std::vector<gchar *>::size_type j=0; j<drl[idict].size(); ++j) {
|
||||
|
||||
Reference in New Issue
Block a user