summaryrefslogtreecommitdiffstats
path: root/external/clucene/patches/nullstring.patch
blob: 6043e9f008906cc8e0f737b9f03ab61216910085 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- src/core/CLucene/index/SegmentInfos.cpp
+++ src/core/CLucene/index/SegmentInfos.cpp
@@ -358,7 +358,7 @@
 	   if (delGen == NO) {
 		   // In this case we know there is no deletion filename
 		   // against this segment
-		   return NULL;
+		   return {};
 	   } else {
 		   // If delGen is CHECK_DIR, it's the pre-lockless-commit file format
 		   return IndexFileNames::fileNameFromGeneration(name.c_str(), (string(".") + IndexFileNames::DELETES_EXTENSION).c_str(), delGen);