From 5bce32904091ffe28884fd5c0f4801ee82bad101 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 27 Aug 2014 16:57:21 +0200 Subject: SfxHint: convert home-grown RTTI to normal C++ RTTI Also note that I fixed a bug in SvxFontMenuControl::Notify where the if statement had the check the wrong way around. Change-Id: I611e8929c65818191e36bd80f2b985820ada4411 Reviewed-on: https://gerrit.libreoffice.org/11147 Reviewed-by: Norbert Thiebaud Tested-by: Norbert Thiebaud --- svl/Library_svl.mk | 1 - svl/source/items/style.cxx | 4 ---- svl/source/notify/hint.cxx | 2 -- svl/source/notify/isethint.cxx | 3 --- svl/source/notify/smplhint.cxx | 24 ------------------------ 5 files changed, 34 deletions(-) delete mode 100644 svl/source/notify/smplhint.cxx (limited to 'svl') diff --git a/svl/Library_svl.mk b/svl/Library_svl.mk index 7b2b2ee399d7..18225fbff3ee 100644 --- a/svl/Library_svl.mk +++ b/svl/Library_svl.mk @@ -127,7 +127,6 @@ $(eval $(call gb_Library_add_exception_objects,svl,\ svl/source/notify/isethint \ svl/source/notify/listener \ svl/source/notify/lstner \ - svl/source/notify/smplhint \ svl/source/numbers/numfmuno \ svl/source/numbers/numhead \ svl/source/numbers/numuno \ diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx index 541fa95cbcbc..2f41cf85a496 100644 --- a/svl/source/items/style.cxx +++ b/svl/source/items/style.cxx @@ -58,10 +58,6 @@ TYPEINIT0(SfxStyleSheetBase) TYPEINIT3(SfxStyleSheet, SfxStyleSheetBase, SfxListener, SfxBroadcaster) -TYPEINIT1(SfxStyleSheetHint, SfxHint); -TYPEINIT1(SfxStyleSheetHintExtended, SfxStyleSheetHint); -TYPEINIT1(SfxStyleSheetPoolHint, SfxHint); - SfxStyleSheetHintExtended::SfxStyleSheetHintExtended ( sal_uInt16 nAction, // SFX_STYLESHEET_... (see above) diff --git a/svl/source/notify/hint.cxx b/svl/source/notify/hint.cxx index 28ef4e06d165..183b12af9c91 100644 --- a/svl/source/notify/hint.cxx +++ b/svl/source/notify/hint.cxx @@ -21,8 +21,6 @@ #include -TYPEINIT0(SfxHint); - // virtual dtor for the typical base-class Hint SfxHint::~SfxHint() diff --git a/svl/source/notify/isethint.cxx b/svl/source/notify/isethint.cxx index 3c2dd49eb2aa..9577aefda0c4 100644 --- a/svl/source/notify/isethint.cxx +++ b/svl/source/notify/isethint.cxx @@ -22,8 +22,6 @@ #include -TYPEINIT1(SfxItemSetHint, SfxHint); - /** * Copies the SfxItemSet passed as a parameter. */ @@ -32,7 +30,6 @@ SfxItemSetHint::SfxItemSetHint( const SfxItemSet &rItemSet ) { } - SfxItemSetHint::~SfxItemSetHint() { delete _pItemSet; diff --git a/svl/source/notify/smplhint.cxx b/svl/source/notify/smplhint.cxx deleted file mode 100644 index b85173431150..000000000000 --- a/svl/source/notify/smplhint.cxx +++ /dev/null @@ -1,24 +0,0 @@ -/* -*- 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 . - */ - -#include - -TYPEINIT1(SfxSimpleHint, SfxHint); - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit