Cleanup moc_csync.cpp include
authorHannah von Reth <hannah.vonreth@owncloud.com>
Wed, 22 Apr 2020 13:15:55 +0000 (15:15 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:59:11 +0000 (10:59 +0100)
src/csync/CMakeLists.txt
src/csync/csync.cpp [new file with mode: 0644]
src/csync/csync_util.cpp

index f881db4ac33df3966b405cf0136a7a7233b87b8d..2d50c29881654ef041ee12fd3ad8e175676b990f 100644 (file)
@@ -30,6 +30,7 @@ if(NO_RENAME_EXTENSION)
 endif()
 
 set(csync_SRCS
+  csync.cpp
   csync_exclude.cpp
   csync_util.cpp
 
diff --git a/src/csync/csync.cpp b/src/csync/csync.cpp
new file mode 100644 (file)
index 0000000..a32c532
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ * libcsync -- a library to sync a directory with another
+ *
+ * Copyright (c) 2020 by Hannah von Reth <hannah.vonreth@owncloud.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "csync.h"
+#include "moc_csync.cpp"
index c134bc0f2c220d9095d4884600c86190161d929c..54f2983397dd44c9ee448e208e457c736fa998eb 100644 (file)
@@ -165,5 +165,3 @@ bool csync_is_collision_safe_hash(const QByteArray &checksum_header)
     return checksum_header.startsWith("SHA")
         || checksum_header.startsWith("MD5:");
 }
-
-#include "moc_csync.cpp"