diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-25 14:57:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-11 14:12:25 +0200 |
commit | dac4ca5f682fdd0c3eee7f7ee1d98c9b3c8b7ce4 (patch) | |
tree | f0f66445c3f396759c41d7e3294e728653dbfa88 /editeng | |
parent | 28b6325901138a6267320902ec889fc434ddde91 (diff) |
new loplugin: externalandnotdefined
Find "missing headers," where a function is declared directly in the
.cxx (as extern) and not defined, and should arguably instead be declared
in an include file.
Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/uno/unofored.cxx | 1 | ||||
-rw-r--r-- | editeng/source/uno/unofored_internal.hxx | 29 | ||||
-rw-r--r-- | editeng/source/uno/unoforou.cxx | 3 |
3 files changed, 31 insertions, 2 deletions
diff --git a/editeng/source/uno/unofored.cxx b/editeng/source/uno/unofored.cxx index 32b0f9eeba31..b454b6dcb34f 100644 --- a/editeng/source/uno/unofored.cxx +++ b/editeng/source/uno/unofored.cxx @@ -31,6 +31,7 @@ #include <editeng/editobj.hxx> #include <editeng/unofored.hxx> +#include <unofored_internal.hxx> using namespace ::com::sun::star; diff --git a/editeng/source/uno/unofored_internal.hxx b/editeng/source/uno/unofored_internal.hxx new file mode 100644 index 000000000000..66758b08b4e0 --- /dev/null +++ b/editeng/source/uno/unofored_internal.hxx @@ -0,0 +1,29 @@ +/* -*- 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_EDITENG_SOURCE_UNO_UNFORED_INTERNAL_HXX +#define INCLUDED_EDITENG_SOURCE_UNO_UNFORED_INTERNAL_HXX + + +sal_uInt16 GetSvxEditEngineItemState( EditEngine& rEditEngine, const ESelection& rSel, sal_uInt16 nWhich ); + + +#endif // INCLUDED_EDITENG_SOURCE_UNO_UNFORED_INTERNAL_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/editeng/source/uno/unoforou.cxx b/editeng/source/uno/unoforou.cxx index c2d0d1d58cfe..b39b4531d782 100644 --- a/editeng/source/uno/unoforou.cxx +++ b/editeng/source/uno/unoforou.cxx @@ -34,6 +34,7 @@ #include <editeng/unoforou.hxx> #include <editeng/unofored.hxx> #include <editeng/outlobj.hxx> +#include <unofored_internal.hxx> using namespace ::com::sun::star; @@ -243,8 +244,6 @@ bool SvxOutlinerForwarder::IsValid() const return rOutliner.GetUpdateMode(); } -extern sal_uInt16 GetSvxEditEngineItemState( EditEngine& rEditEngine, const ESelection& rSel, sal_uInt16 nWhich ); - sal_uInt16 SvxOutlinerForwarder::GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const { return GetSvxEditEngineItemState( (EditEngine&)rOutliner.GetEditEngine(), rSel, nWhich ); |