/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Fireworks/Core/src/FWBoxIconBase.h
52 строки
1 KB
Shahzad Malik Muzaffar
[Fireworks][clang-tidy] modernize-use-equals-delete suggests to make deleted member function public
28 июл 2021, 12:33
28 июл 2021, 12:33
68a6350
Код
Авторство
О чём код?
#ifndef Fireworks_Core_FWBoxIconBase_h #define Fireworks_Core_FWBoxIconBase_h // -*- C++ -*- // // Package: Core // Class : FWBoxIconBase // /**\class FWBoxIconBase FWBoxIconBase.h Fireworks/Core/interface/FWBoxIconBase.h Description: Base class for rendering an icon which has a box as an outline Usage: <usage> */ // // Original Author: Chris Jones // Created: Thu Feb 19 15:09:30 CST 2009 // // system include files #include "GuiTypes.h" // user include files // forward declarations class FWBoxIconBase { public: FWBoxIconBase(unsigned int iEdgeLength); virtual ~FWBoxIconBase(); // ---------- const member functions --------------------- void draw(Drawable_t iID, GContext_t iContext, int iX, int iY) const; unsigned int edgeLength() const { return m_edgeLength; } // ---------- static member functions -------------------- // ---------- member functions --------------------------- FWBoxIconBase(const FWBoxIconBase&) = delete; // stop default const FWBoxIconBase& operator=(const FWBoxIconBase&) = delete; // stop default private: virtual void drawInsideBox(Drawable_t iID, GContext_t iContext, int iX, int iY, unsigned int iSize) const = 0; // ---------- member data -------------------------------- unsigned int m_edgeLength; }; #endif