mirror of
https://github.com/transmission/transmission.git
synced 2025-12-27 13:41:17 +00:00
sonarcloud warnings 9 (#1511)
* refactor: const correctness * refactor: fix some implicit conversions * refactor: make local pointers const if their objects are not modified * refactor: do not cast away const in torrent-cell-renderer * refactor: remove call to deprecated gtk_icon_size_lookup_for_settings * refactor: member functions that do not mutate their objects should be declared const * chore: do not end comments with a semicolon
This commit is contained in:
@@ -16,14 +16,14 @@ InteropObject::InteropObject(QObject* parent) :
|
||||
}
|
||||
|
||||
// NOLINTNEXTLINE(readability-identifier-naming)
|
||||
bool InteropObject::PresentWindow()
|
||||
bool InteropObject::PresentWindow() const
|
||||
{
|
||||
trApp->raise();
|
||||
return true;
|
||||
}
|
||||
|
||||
// NOLINTNEXTLINE(readability-identifier-naming)
|
||||
bool InteropObject::AddMetainfo(QString const& metainfo)
|
||||
bool InteropObject::AddMetainfo(QString const& metainfo) const
|
||||
{
|
||||
AddData addme(metainfo);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user