Commit 869c3616 authored by Kurt Hindenburg's avatar Kurt Hindenburg

constructors/decontructors use =default instead of {}

parent 5a15d20d
......@@ -224,9 +224,8 @@ const QString* Filter::buffer()
{
return _buffer;
}
Filter::HotSpot::~HotSpot()
{
}
Filter::HotSpot::~HotSpot() = default;
void Filter::addHotSpot(HotSpot* spot)
{
_hotspotList << spot;
......
......@@ -222,9 +222,7 @@ HistoryScrollFile::HistoryScrollFile(const QString& logFileName)
{
}
HistoryScrollFile::~HistoryScrollFile()
{
}
HistoryScrollFile::~HistoryScrollFile() = default;
int HistoryScrollFile::getLines()
{
......@@ -288,9 +286,7 @@ HistoryScrollNone::HistoryScrollNone()
{
}
HistoryScrollNone::~HistoryScrollNone()
{
}
HistoryScrollNone::~HistoryScrollNone() = default;
bool HistoryScrollNone::hasScroll()
{
......@@ -572,13 +568,8 @@ bool CompactHistoryScroll::isWrappedLine(int lineNumber)
// History Types
//////////////////////////////////////////////////////////////////////
HistoryType::HistoryType()
{
}
HistoryType::~HistoryType()
{
}
HistoryType::HistoryType() = default;
HistoryType::~HistoryType() = default;
//////////////////////////////
......
......@@ -98,7 +98,7 @@ KeyboardTranslatorReader::KeyboardTranslatorReader(QIODevice* source)
readNext();
}
KeyboardTranslatorReader::~KeyboardTranslatorReader() {}
KeyboardTranslatorReader::~KeyboardTranslatorReader() = default;
void KeyboardTranslatorReader::readNext()
{
......
......@@ -36,9 +36,7 @@ PrintOptions::PrintOptions(QWidget* aParent) : QWidget(aParent)
scaleOutput->setChecked(configGroup.readEntry("ScaleOutput", true));
}
PrintOptions::~PrintOptions()
{
}
PrintOptions::~PrintOptions() = default;
void PrintOptions::saveSettings()
{
......
......@@ -237,9 +237,9 @@ void Profile::clone(Profile::Ptr profile, bool differentOnly)
properties++;
}
}
Profile::~Profile()
{
}
Profile::~Profile() = default;
bool Profile::isHidden() const
{
return _hidden;
......
......@@ -111,9 +111,7 @@ ProfileManager::ProfileManager()
loadShortcuts();
}
ProfileManager::~ProfileManager()
{
}
ProfileManager::~ProfileManager() = default;
Q_GLOBAL_STATIC(ProfileManager, theProfileManager)
ProfileManager* ProfileManager::instance()
......
......@@ -68,9 +68,7 @@ void Pty::init()
connect(pty(), &KPtyDevice::readyRead , this , &Konsole::Pty::dataReceived);
}
Pty::~Pty()
{
}
Pty::~Pty() = default;
void Pty::sendData(const QByteArray& data)
{
......
......@@ -1534,9 +1534,8 @@ SessionGroup::SessionGroup(QObject* parent)
: QObject(parent), _masterMode(0)
{
}
SessionGroup::~SessionGroup()
{
}
SessionGroup::~SessionGroup() = default;
int SessionGroup::masterMode() const
{
return _masterMode;
......
......@@ -1693,9 +1693,7 @@ SaveHistoryTask::SaveHistoryTask(QObject* parent)
: SessionTask(parent)
{
}
SaveHistoryTask::~SaveHistoryTask()
{
}
SaveHistoryTask::~SaveHistoryTask() = default;
void SaveHistoryTask::execute()
{
......
......@@ -98,9 +98,7 @@ ViewManager::ViewManager(QObject* parent , KActionCollection* collection)
QDBusConnection::sessionBus().registerObject(QLatin1String("/Windows/") + QString::number(_managerId), this);
}
ViewManager::~ViewManager()
{
}
ViewManager::~ViewManager() = default;
int ViewManager::managerId() const
{
......
......@@ -75,8 +75,7 @@ Vt102Emulation::Vt102Emulation()
reset();
}
Vt102Emulation::~Vt102Emulation()
{}
Vt102Emulation::~Vt102Emulation() = default;
void Vt102Emulation::clearEntireScreen()
{
......
......@@ -36,7 +36,5 @@ FileLocationSettings::FileLocationSettings(QWidget* aParent) : QWidget(aParent)
}
FileLocationSettings::~FileLocationSettings()
{
}
FileLocationSettings::~FileLocationSettings() = default;
......@@ -34,9 +34,7 @@ GeneralSettings::GeneralSettings(QWidget* aParent) : QWidget(aParent)
this->kcfg_ShowTerminalSizeHint->setVisible(false);
}
GeneralSettings::~GeneralSettings()
{
}
GeneralSettings::~GeneralSettings() = default;
void GeneralSettings::slotEnableAllMessages()
{
......
......@@ -102,9 +102,7 @@ void ProfileSettings::showEvent(QShowEvent*)
sessionTable->horizontalHeader()->setStretchLastSection(true);
}
ProfileSettings::~ProfileSettings()
{
}
ProfileSettings::~ProfileSettings() = default;
void ProfileSettings::slotAccepted()
{
......
......@@ -28,7 +28,5 @@ TabBarSettings::TabBarSettings(QWidget* aParent) : QWidget(aParent)
setupUi(this);
}
TabBarSettings::~TabBarSettings()
{
}
TabBarSettings::~TabBarSettings() = default;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment