Merge pull request #232 from isildur-g/develop

minor changes to build in BSD (Net and Free)
This commit is contained in:
Konstantinos Margaritis
2024-04-17 08:59:49 +03:00
committed by GitHub
11 changed files with 140 additions and 25 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2015-2019, Intel Corporation
* Copyright (c) 2024, VectorCamp PC
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -1079,7 +1080,7 @@ shared_ptr<BaseDB> UltimateTruth::compile(const set<unsigned> &ids,
}
}
return std::move(db);
return db;
}
bool UltimateTruth::allocScratch(shared_ptr<const BaseDB> db) {

View File

@@ -1,5 +1,6 @@
/*
* Copyright (c) 2015-2019, Intel Corporation
* Copyright (c) 2024, VectorCamp PC
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -1830,11 +1831,11 @@ unique_ptr<CorporaSource> buildCorpora(const vector<string> &corporaFiles,
exit_with_fail();
}
}
return std::move(c); /* move allows unique_ptr<CorporaSource> conversion */
return c;
} else {
auto c = std::make_unique<NfaGeneratedCorpora>(
exprMap, corpus_gen_prop, force_utf8, force_prefilter);
return std::move(c);
return c;
}
}