summaryrefslogtreecommitdiffstats
path: root/src/TextViewLog.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-02-03 14:42:41 -0500
committerDavid Robillard <d@drobilla.net>2023-02-03 18:29:18 -0500
commitbeb23867f8cfd5bc0c58b8044de3433b40c2b3e5 (patch)
treeadd1e01060290920fb24d4c80acfa1875c0ae86e /src/TextViewLog.cpp
parente9f7b26d8f47ba5911c2c271fd2cccdffc30a831 (diff)
downloadpatchage-beb23867f8cfd5bc0c58b8044de3433b40c2b3e5.tar.gz
patchage-beb23867f8cfd5bc0c58b8044de3433b40c2b3e5.tar.bz2
patchage-beb23867f8cfd5bc0c58b8044de3433b40c2b3e5.zip
Suppress/fix new warnings in clang-tidy 15
Diffstat (limited to 'src/TextViewLog.cpp')
-rw-r--r--src/TextViewLog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/TextViewLog.cpp b/src/TextViewLog.cpp
index 50d85b0..712b760 100644
--- a/src/TextViewLog.cpp
+++ b/src/TextViewLog.cpp
@@ -45,7 +45,7 @@ TextViewLog::TextViewLog(Widget<Gtk::TextView>& text_view)
void
TextViewLog::info(const std::string& msg)
{
- Glib::RefPtr<Gtk::TextBuffer> buffer = _text_view->get_buffer();
+ const Glib::RefPtr<Gtk::TextBuffer> buffer = _text_view->get_buffer();
buffer->insert(buffer->end(), std::string("\n") + msg);
_text_view->scroll_to_mark(buffer->get_insert(), 0);
}
@@ -53,7 +53,7 @@ TextViewLog::info(const std::string& msg)
void
TextViewLog::warning(const std::string& msg)
{
- Glib::RefPtr<Gtk::TextBuffer> buffer = _text_view->get_buffer();
+ const Glib::RefPtr<Gtk::TextBuffer> buffer = _text_view->get_buffer();
buffer->insert_with_tag(buffer->end(), std::string("\n") + msg, _warning_tag);
_text_view->scroll_to_mark(buffer->get_insert(), 0);
}
@@ -61,7 +61,7 @@ TextViewLog::warning(const std::string& msg)
void
TextViewLog::error(const std::string& msg)
{
- Glib::RefPtr<Gtk::TextBuffer> buffer = _text_view->get_buffer();
+ const Glib::RefPtr<Gtk::TextBuffer> buffer = _text_view->get_buffer();
buffer->insert_with_tag(buffer->end(), std::string("\n") + msg, _error_tag);
_text_view->scroll_to_mark(buffer->get_insert(), 0);
}
@@ -69,7 +69,7 @@ TextViewLog::error(const std::string& msg)
int
TextViewLog::min_height() const
{
- Glib::RefPtr<Gtk::TextBuffer> buffer = _text_view->get_buffer();
+ const Glib::RefPtr<Gtk::TextBuffer> buffer = _text_view->get_buffer();
int y = 0;
int line_height = 0;