mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix various copy instead of const ref reported by cppcheck (#5615)
* Also remove InventoryList::peekItem unused function * Fix some post increment to preincrement reported by cppcheck
This commit is contained in:
parent
cfe0291b13
commit
f3fe62a0bf
13 changed files with 46 additions and 68 deletions
|
@ -207,7 +207,7 @@ public:
|
|||
class HTTPFetchOngoing
|
||||
{
|
||||
public:
|
||||
HTTPFetchOngoing(HTTPFetchRequest request, CurlHandlePool *pool);
|
||||
HTTPFetchOngoing(const HTTPFetchRequest &request, CurlHandlePool *pool);
|
||||
~HTTPFetchOngoing();
|
||||
|
||||
CURLcode start(CURLM *multi);
|
||||
|
@ -228,7 +228,8 @@ private:
|
|||
};
|
||||
|
||||
|
||||
HTTPFetchOngoing::HTTPFetchOngoing(HTTPFetchRequest request_, CurlHandlePool *pool_):
|
||||
HTTPFetchOngoing::HTTPFetchOngoing(const HTTPFetchRequest &request_,
|
||||
CurlHandlePool *pool_):
|
||||
pool(pool_),
|
||||
curl(NULL),
|
||||
multi(NULL),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue