summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-09 10:36:16 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-09 10:36:16 +0200
commit2f4d7b63df15d8cd4713e800332a3b05bb068cc4 (patch)
tree931afbcbe7609d360dceb91954e822ebe01e2986 /basegfx
parentdcb2fbdae5d696a2f41ae18617c0e2c52b2e8cb3 (diff)
Clean up function declarations
Change-Id: Id79786060f3485c9c60f5561bb9590179947b3ce
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/test/basegfx2d.cxx5
-rw-r--r--basegfx/test/boxclipper.cxx4
-rw-r--r--basegfx/test/boxclipper.hxx35
3 files changed, 39 insertions, 5 deletions
diff --git a/basegfx/test/basegfx2d.cxx b/basegfx/test/basegfx2d.cxx
index 3a3542c56bdd..a7706fd13385 100644
--- a/basegfx/test/basegfx2d.cxx
+++ b/basegfx/test/basegfx2d.cxx
@@ -47,13 +47,12 @@
#include <iostream>
#include <fstream>
-using namespace ::basegfx;
+#include <boxclipper.hxx>
+using namespace ::basegfx;
namespace basegfx2d
{
- extern double getRandomOrdinal( const ::std::size_t n );
-
class b2dsvgdimpex : public CppUnit::TestFixture
{
private:
diff --git a/basegfx/test/boxclipper.cxx b/basegfx/test/boxclipper.cxx
index 9047b3cbddd7..57cbd3fad07d 100644
--- a/basegfx/test/boxclipper.cxx
+++ b/basegfx/test/boxclipper.cxx
@@ -36,9 +36,9 @@
#include <boost/bind.hpp>
-using namespace ::basegfx;
+#include <boxclipper.hxx>
-extern double getRandomOrdinal( const ::std::size_t n );
+using namespace ::basegfx;
namespace basegfx2d
{
diff --git a/basegfx/test/boxclipper.hxx b/basegfx/test/boxclipper.hxx
new file mode 100644
index 000000000000..70eed2adcee5
--- /dev/null
+++ b/basegfx/test/boxclipper.hxx
@@ -0,0 +1,35 @@
+/* -*- 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/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#ifndef INCLUDED_BASEGFX_TEST_BOXCLIPPER_HXX
+#define INCLUDED_BASEGFX_TEST_BOXCLIPPER_HXX
+
+#include <sal/config.h>
+
+#include <cstddef>
+
+namespace basegfx2d {
+
+double getRandomOrdinal( const ::std::size_t n );
+
+}
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */