Files
loongoffice/sc/inc/refreshtimerprotector.hxx
Noel Grandin e2080e70fe new compilerplugin returnbyref
Find places where we are returning a pointer to something, where we can
be returning a reference.
e.g.
   class A {
     struct X x;
     public X* getX() { return &x; }
   }
which can be:
     public X& getX() { return x; }

Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7
2014-06-24 11:34:21 +02:00

30 lines
786 B
C++

/* -*- 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_INC_REFRESHTIMERPROTECTOR_HXX
#define INCLUDED_SC_INC_REFRESHTIMERPROTECTOR_HXX
#include <sal/config.h>
#include "scdllapi.h"
class ScRefreshTimerControl;
class SC_DLLPUBLIC ScRefreshTimerProtector
{
ScRefreshTimerControl * const & m_rpControl;
public:
ScRefreshTimerProtector( ScRefreshTimerControl * const & rp );
~ScRefreshTimerProtector();
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */