summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-07-31 18:28:55 +0200
committerMichael Stahl <mstahl@redhat.com>2015-07-31 21:24:24 +0200
commit7ee228a108d1e5d4ffa9121e0890e23982f8ecb5 (patch)
tree68579e33d23b0833bfed5ffe856eb156c7fd6003 /include
parent819fd24487aa120e6f0df1488d1afef7621252cb (diff)
svtools: replace boost::function with std::function
Change-Id: Ic60190814a19e03341de3678f35c4ac69624ca4c
Diffstat (limited to 'include')
-rw-r--r--include/svtools/filechangedchecker.hxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/svtools/filechangedchecker.hxx b/include/svtools/filechangedchecker.hxx
index a91642dd55db..480dae53c302 100644
--- a/include/svtools/filechangedchecker.hxx
+++ b/include/svtools/filechangedchecker.hxx
@@ -11,11 +11,13 @@
#define INCLUDED_SVTOOLS_FILECHANGEDCHECKER_HXX
#include <svtools/svtdllapi.h>
-#include <boost/function.hpp>
+
#include <osl/file.hxx>
#include <vcl/timer.hxx>
#include <vcl/idle.hxx>
+#include <functional>
+
/** Periodically checks if a file has been modified
Instances of this class setup a vcl timer to occasionally wake up
@@ -27,7 +29,7 @@ private:
Idle mIdle;
OUString mFileName;
TimeValue mLastModTime;
- ::boost::function0<void> mpCallback;
+ ::std::function<void ()> mpCallback;
bool SVT_DLLPRIVATE getCurrentModTime(TimeValue& o_rValue) const;
DECL_LINK_TYPED(TimerHandler, Idle *, void);
@@ -35,7 +37,8 @@ private:
public:
void resetTimer();
bool hasFileChanged();
- FileChangedChecker(const OUString& rFilename, const ::boost::function0<void>& rCallback);
+ FileChangedChecker(const OUString& rFilename,
+ const ::std::function<void ()>& rCallback);
};
#endif