fix small clang warnings
This commit is contained in:
parent
3ac4349c64
commit
900f718074
@ -128,7 +128,7 @@
|
||||
#define PACKAGE_NAME "Recoll"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "Recoll 1.28.6pre4"
|
||||
#define PACKAGE_STRING "Recoll 1.30.2"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "recoll"
|
||||
@ -137,7 +137,7 @@
|
||||
#define PACKAGE_URL ""
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "1.28.6pre4"
|
||||
#define PACKAGE_VERSION "1.30.2"
|
||||
|
||||
/* putenv parameter is const */
|
||||
/* #undef PUTENV_ARG_CONST */
|
||||
|
||||
@ -269,7 +269,7 @@ static bool matchesSkipped(
|
||||
string topdir;
|
||||
for (;;) { // Used to test not root here, but root may be in topdirs !
|
||||
|
||||
for (const auto tdlent : tdl) {
|
||||
for (const auto& tdlent : tdl) {
|
||||
// the topdirs members are already canonized.
|
||||
LOGDEB1("matchesSkipped: comparing ancestor [" << mpath <<
|
||||
"] to topdir [" << tdlent << "]\n");
|
||||
|
||||
@ -66,7 +66,7 @@ string make_abstract(Rcl::Doc& doc, Rcl::Query& query, bool asSnippets,
|
||||
std::vector<Rcl::Snippet> snippets;
|
||||
std::ostringstream str;
|
||||
if (query.makeDocAbstract(doc, snippets, snipcount, -1, true)) {
|
||||
for (const auto snippet : snippets) {
|
||||
for (const auto& snippet : snippets) {
|
||||
str << snippet.page << " : " << snippet.snippet << endl;
|
||||
}
|
||||
}
|
||||
@ -467,7 +467,7 @@ endopts:
|
||||
<< doc.fbytes << "\tbytes" << "\t"
|
||||
<< endl;
|
||||
if (op_flags & OPT_m) {
|
||||
for (const auto ent : doc.meta) {
|
||||
for (const auto& ent : doc.meta) {
|
||||
cout << ent.first << " = " << ent.second << endl;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user