changeset 566:a7f841fc4a9f find-refactoring

fix builds on older compilers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 22 Sep 2024 10:06:51 +0200
parents 373cf7d747cc
children 77c8544bbd7d
files Framework/Plugins/IndexBackend.cpp
diffstat 1 files changed, 12 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.cpp	Sun Sep 22 10:03:36 2024 +0200
+++ b/Framework/Plugins/IndexBackend.cpp	Sun Sep 22 10:06:51 2024 +0200
@@ -112,13 +112,7 @@
   }
 
 
-  void IndexBackend::ReadChangesInternal(IDatabaseBackendOutput& output,
-                                         bool& done,
-                                         DatabaseManager& manager,
-                                         DatabaseManager::CachedStatement& statement,
-                                         const Dictionary& args,
-                                         uint32_t limit,
-                                         bool returnFirstResults)
+  namespace  // Anonymous namespace to avoid clashes between compilation modules
   {
     struct Change
     {
@@ -133,7 +127,17 @@
       {
       }
     };
-
+  }
+
+
+  void IndexBackend::ReadChangesInternal(IDatabaseBackendOutput& output,
+                                         bool& done,
+                                         DatabaseManager& manager,
+                                         DatabaseManager::CachedStatement& statement,
+                                         const Dictionary& args,
+                                         uint32_t limit,
+                                         bool returnFirstResults)
+  {
     statement.Execute(args);
 
     std::list<Change> changes;