Skip to content

Commit 9ca8eb0

Browse files
authored
Merge pull request #1019 from ojwb/xapian-2.0-string_view-fix
Add explicit conversion to std::string
2 parents 514d446 + 8ac9421 commit 9ca8eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/writer/xapianWorker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ namespace zim
6363
std::string fullPath = "C/" + m_path;
6464
document.set_data(fullPath);
6565
document.add_value(0, mp_indexData->getTitle());
66-
document.add_value(1, Formatter() << mp_indexData->getWordCount());
66+
document.add_value(1, std::string{Formatter() << mp_indexData->getWordCount()});
6767

6868
auto geoInfo = mp_indexData->getGeoPosition();
6969
if (std::get<0>(geoInfo)) {

0 commit comments

Comments
 (0)