summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-12-18 10:26:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-20 13:45:59 +0100
commit5687a2ec116071a5062fc8ae5494f6c351c9e4ac (patch)
treed7054c9cb71a571cd825dbdc674515d4a24c4146 /sc
parent638a76630f06910f29359ae983c41e19dbcb725e (diff)
loplugin:duplicate-defines
move these into their own file, the way we do elsewhere Change-Id: Ib97e09c80537e31d795a8c66a6dfb06b350ff0e2 Reviewed-on: https://gerrit.libreoffice.org/85560 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/helper/qahelper.hxx7
-rw-r--r--sc/qa/unit/helper/scqahelperdllapi.h23
-rw-r--r--sc/qa/unit/helper/xpath.hxx7
3 files changed, 25 insertions, 12 deletions
diff --git a/sc/qa/unit/helper/qahelper.hxx b/sc/qa/unit/helper/qahelper.hxx
index 3e8e5d455484..4cf5ddea1a40 100644
--- a/sc/qa/unit/helper/qahelper.hxx
+++ b/sc/qa/unit/helper/qahelper.hxx
@@ -20,6 +20,7 @@
#include <comphelper/fileformat.h>
#include <formula/grammar.hxx>
+#include "scqahelperdllapi.h"
#include <string>
#include <sstream>
@@ -30,12 +31,6 @@
namespace utl { class TempFile; }
-#if defined(SCQAHELPER_DLLIMPLEMENTATION)
-#define SCQAHELPER_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
-#else
-#define SCQAHELPER_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
-#endif
-
#define ODS_FORMAT_TYPE (SfxFilterFlags::IMPORT | SfxFilterFlags::EXPORT | SfxFilterFlags::TEMPLATE | SfxFilterFlags::OWN | SfxFilterFlags::DEFAULT | SfxFilterFlags::ENCRYPTION | SfxFilterFlags::PASSWORDTOMODIFY)
#define XLS_FORMAT_TYPE (SfxFilterFlags::IMPORT | SfxFilterFlags::EXPORT | SfxFilterFlags::ALIEN | SfxFilterFlags::ENCRYPTION | SfxFilterFlags::PASSWORDTOMODIFY | SfxFilterFlags::PREFERED)
#define XLSX_FORMAT_TYPE (SfxFilterFlags::IMPORT | SfxFilterFlags::EXPORT | SfxFilterFlags::ALIEN | SfxFilterFlags::STARONEFILTER | SfxFilterFlags::PREFERED)
diff --git a/sc/qa/unit/helper/scqahelperdllapi.h b/sc/qa/unit/helper/scqahelperdllapi.h
new file mode 100644
index 000000000000..216ccc0146f1
--- /dev/null
+++ b/sc/qa/unit/helper/scqahelperdllapi.h
@@ -0,0 +1,23 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_SC_QA_UNIT_HELPER_DLLAPI_H
+#define INCLUDED_SC_QA_UNIT_HELPER_DLLAPI_H
+
+#include <sal/types.h>
+
+#if defined(SCQAHELPER_DLLIMPLEMENTATION)
+#define SCQAHELPER_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
+#else
+#define SCQAHELPER_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
+#endif
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/qa/unit/helper/xpath.hxx b/sc/qa/unit/helper/xpath.hxx
index 39813bea85cd..16d0fec07f25 100644
--- a/sc/qa/unit/helper/xpath.hxx
+++ b/sc/qa/unit/helper/xpath.hxx
@@ -14,6 +14,7 @@
#include <rtl/ustring.hxx>
#include <sal/types.h>
+#include "scqahelperdllapi.h"
#include <memory>
@@ -23,12 +24,6 @@ namespace utl { class TempFile; }
class ScDocShell;
class SvStream;
-#if defined(SCQAHELPER_DLLIMPLEMENTATION)
-#define SCQAHELPER_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
-#else
-#define SCQAHELPER_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
-#endif
-
using namespace com::sun::star;
class ScBootstrapFixture;