From a4c9664532329d7143aabdacf22b1cab662f77c4 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Sun, 5 Dec 2021 22:59:31 +0100 Subject: make it clearer that ScHint is modified MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's somewhat confusing that an accessor is provided to give a reference to internal data and then the object is modified indirectly using the reference. It appears to be only for performance reasons, so I thought that inlining the ctor and ctor could help the compiler to optimize this, but apparently it can't move this outside of the loop, so at least make it clearer. Change-Id: I72cf15d1446daa559ac4079b9478e53694d7d198 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126394 Tested-by: Jenkins Reviewed-by: Luboš Luňák --- svl/Library_svl.mk | 1 - svl/source/notify/hint.cxx | 26 -------------------------- 2 files changed, 27 deletions(-) delete mode 100644 svl/source/notify/hint.cxx (limited to 'svl') diff --git a/svl/Library_svl.mk b/svl/Library_svl.mk index b81660089ea0..4e388ca0d471 100644 --- a/svl/Library_svl.mk +++ b/svl/Library_svl.mk @@ -168,7 +168,6 @@ $(eval $(call gb_Library_add_exception_objects,svl,\ svl/source/misc/urihelper \ svl/source/notify/SfxBroadcaster \ svl/source/notify/broadcast \ - svl/source/notify/hint \ svl/source/notify/isethint \ svl/source/notify/listener \ svl/source/notify/lstner \ diff --git a/svl/source/notify/hint.cxx b/svl/source/notify/hint.cxx deleted file mode 100644 index 72cac43ef9a9..000000000000 --- a/svl/source/notify/hint.cxx +++ /dev/null @@ -1,26 +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 - -// virtual dtor for the typical base-class Hint - -SfxHint::~SfxHint() COVERITY_NOEXCEPT_FALSE {} - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit