aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt/ScintillaEditBase/PlatQt.cpp
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-04-05 21:26:15 +1000
committerNeil <nyamatongwe@gmail.com>2021-04-05 21:26:15 +1000
commitc81cf0efc07247f320b649f35500af64ff19ac24 (patch)
tree1c89401c163088db42754a279c8cc0f937e30d5e /qt/ScintillaEditBase/PlatQt.cpp
parent00527a74c676076cad767397a2867a4aa4454a19 (diff)
downloadscintilla-mirror-c81cf0efc07247f320b649f35500af64ff19ac24.tar.gz
More noexcept on Cocoa, GTK, and Qt.
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.cpp')
-rw-r--r--qt/ScintillaEditBase/PlatQt.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp
index b9d6a0351..60145691a 100644
--- a/qt/ScintillaEditBase/PlatQt.cpp
+++ b/qt/ScintillaEditBase/PlatQt.cpp
@@ -808,7 +808,7 @@ QRect ScreenRectangleForPoint(QPoint posGlobal)
}
-Window::~Window() {}
+Window::~Window() noexcept {}
void Window::Destroy() noexcept
{
@@ -936,8 +936,8 @@ private:
class ListBoxImpl : public ListBox {
public:
- ListBoxImpl();
- ~ListBoxImpl();
+ ListBoxImpl() noexcept;
+ ~ListBoxImpl() noexcept override = default;
void SetFont(const Font *font) override;
void Create(Window &parent, int ctrlID, Point location,
@@ -969,12 +969,10 @@ private:
int visibleRows;
QMap<int,QPixmap> images;
};
-ListBoxImpl::ListBoxImpl()
+ListBoxImpl::ListBoxImpl() noexcept
: unicodeMode(false), visibleRows(5)
{}
-ListBoxImpl::~ListBoxImpl() {}
-
void ListBoxImpl::Create(Window &parent,
int /*ctrlID*/,
Point location,
@@ -1211,7 +1209,7 @@ ListWidget *ListBoxImpl::GetWidget() const noexcept
}
ListBox::ListBox() noexcept {}
-ListBox::~ListBox() {}
+ListBox::~ListBox() noexcept {}
std::unique_ptr<ListBox> ListBox::Allocate()
{