mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-24 23:45:20 +01: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:
@@ -127,8 +127,8 @@ struct TextDestPlayerInventory : public TextDest
|
||||
|
||||
struct LocalFormspecHandler : public TextDest
|
||||
{
|
||||
LocalFormspecHandler(std::string formname):
|
||||
m_client(0)
|
||||
LocalFormspecHandler(const std::string &formname):
|
||||
m_client(NULL)
|
||||
{
|
||||
m_formname = formname;
|
||||
}
|
||||
@@ -139,11 +139,6 @@ struct LocalFormspecHandler : public TextDest
|
||||
m_formname = formname;
|
||||
}
|
||||
|
||||
void gotText(const std::wstring &message)
|
||||
{
|
||||
errorstream << "LocalFormspecHandler::gotText old style message received" << std::endl;
|
||||
}
|
||||
|
||||
void gotText(const StringMap &fields)
|
||||
{
|
||||
if (m_formname == "MT_PAUSE_MENU") {
|
||||
|
||||
Reference in New Issue
Block a user