mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 17:35:37 +02:00
Fix various points reported by cppcheck (#5656)
* Fix various performance issues reported by cppcheck + code style (CI) * Make CI happy with code style on master * guiFileSelectMenu: remove useless includes * some performance fixes pointed by cppcheck * remove some useless casts * TextDest: remove unused setFormSpec function * Fix various iterator post-increment reported by cppcheck
This commit is contained in:
@@ -83,8 +83,8 @@ public:
|
||||
GetRequest() {}
|
||||
~GetRequest() {}
|
||||
|
||||
GetRequest(Key a_key) {
|
||||
key = a_key;
|
||||
GetRequest(const Key &a_key): key(a_key)
|
||||
{
|
||||
}
|
||||
|
||||
Key key;
|
||||
@@ -106,7 +106,7 @@ public:
|
||||
return m_queue.empty();
|
||||
}
|
||||
|
||||
void add(Key key, Caller caller, CallerData callerdata,
|
||||
void add(const Key &key, Caller caller, CallerData callerdata,
|
||||
ResultQueue<Key, T, Caller, CallerData> *dest)
|
||||
{
|
||||
typename std::deque<GetRequest<Key, T, Caller, CallerData> >::iterator i;
|
||||
|
Reference in New Issue
Block a user