diff --git a/src/common/kiwix/searcher.cpp b/src/common/kiwix/searcher.cpp index 360b7cea..c1804c3c 100644 --- a/src/common/kiwix/searcher.cpp +++ b/src/common/kiwix/searcher.cpp @@ -38,13 +38,13 @@ namespace kiwix { /* Constructor */ Searcher::Searcher() : searchPattern(""), + protocolPrefix("zim://"), + searchProtocolPrefix("search://?"), resultCountPerPage(0), estimatedResultCount(0), resultStart(0), resultEnd(0), - resultRange(20), - protocolPrefix("zim://"), - searchProtocolPrefix("search://?") { + resultRange(20) { } /* Search strings in the database */ diff --git a/src/common/kiwix/searcher.h b/src/common/kiwix/searcher.h index 8c7e27fc..6b5cfb5b 100644 --- a/src/common/kiwix/searcher.h +++ b/src/common/kiwix/searcher.h @@ -86,12 +86,12 @@ namespace kiwix { std::vector results; std::vector::iterator resultOffset; std::string searchPattern; + std::string protocolPrefix; + std::string searchProtocolPrefix; unsigned int resultCountPerPage; unsigned int estimatedResultCount; unsigned int resultStart; unsigned int resultEnd; - std::string protocolPrefix; - std::string searchProtocolPrefix; std::string contentHumanReadableId; unsigned int resultRange; };