From aae8baf2d0dc0407cde22e6c0e9233c4725df5c1 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 13 Apr 2018 17:45:23 +0200 Subject: [PATCH] Only compile FileKeeper when it's necessary --- part.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/part.cpp b/part.cpp index df8fec84b..e27c605fc 100644 --- a/part.cpp +++ b/part.cpp @@ -115,6 +115,7 @@ #include "core/fileprinter.h" #include +#ifdef OKULAR_KEEP_FILE_OPEN class FileKeeper { public: @@ -170,6 +171,7 @@ class FileKeeper private: std::FILE * m_handle; }; +#endif K_PLUGIN_FACTORY(OkularPartFactory, registerPlugin();)