replace array with variable size with vector,

this should help clang compiler to compile our source code
This commit is contained in:
Evgeniy Dushistov
2013-07-06 12:52:48 +00:00
parent 2a5da7969f
commit ab22f8eb41
5 changed files with 7 additions and 7 deletions

View File

@@ -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) {