]> granicus.if.org Git - icinga2/commitdiff
Fix compiler warning.
authorGunnar Beutner <gunnar@beutner.name>
Fri, 29 Nov 2013 16:06:48 +0000 (17:06 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Fri, 29 Nov 2013 16:06:48 +0000 (17:06 +0100)
Refs #5245

lib/base/utility.cpp
lib/base/utility.h

index 7badf9b3b40bd872e88a216aa9cd2e626ff98a7f..a587b066013d7d32ceb5caf308f87047955423ea 100644 (file)
@@ -418,7 +418,7 @@ bool Utility::Glob(const String& pathSpec, const boost::function<void (const Str
  * @param callback The callback which is invoked for each matching file.
  * @param type The file type (a combination of GlobFile and GlobDirectory)
  */
-bool Utility::GlobRecursive(const String& path, const String& pattern, const boost::function<void (const String&)>& callback, int type)
+void Utility::GlobRecursive(const String& path, const String& pattern, const boost::function<void (const String&)>& callback, int type)
 {
 #ifdef _WIN32
        HANDLE handle;
index ba070a6af425c3b6dbe7d8bb2de602bbfd56dba5..d1c5f4a76af4378454a78b9c49a678124afcb1a3 100644 (file)
@@ -76,7 +76,7 @@ public:
        static String NewUniqueID(void);
 
        static bool Glob(const String& pathSpec, const boost::function<void (const String&)>& callback, int type = GlobFile | GlobDirectory);
-       static bool GlobRecursive(const String& path, const String& pattern, const boost::function<void (const String&)>& callback, int type = GlobFile | GlobDirectory);
+       static void GlobRecursive(const String& path, const String& pattern, const boost::function<void (const String&)>& callback, int type = GlobFile | GlobDirectory);
 
        static void QueueAsyncCallback(const boost::function<void (void)>& callback);