1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00
vcmi/server
Alexander Wilms 522cb571b3 Remove redundant virtual specifiers
`grep -nr virtual | grep -v googletest | grep override > ../redundant_virtual.txt`

```python
import os

with open("../redundant_virtual.txt") as f:
    for line in f:
        print()
        line: str = line.strip()
        print(line)
        tmp = line.split(":")
        file = tmp[0].strip()
        code = tmp[-1].strip()
        print(file)
        print(code)
        new_code = code.replace("virtual ", "", 1)
        # https://superuser.com/a/802490/578501
        command = f"export FIND='{code}' && export REPLACE='{new_code}' && ruby -p -i -e \"gsub(ENV['FIND'], ENV['REPLACE'])\" {file}"
        os.system(command)
```
2024-02-10 20:46:13 +01:00
..
battles Fix crash on broken ENCHANTED bonus 2024-02-05 21:07:01 +02:00
processors Merge pull request #3530 from Laserlicht/tavern 2024-01-26 13:12:55 +02:00
queries Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
CGameHandler.cpp Merge pull request #3588 from IvanSavenko/fix_regressions 2024-02-01 22:27:52 +02:00
CGameHandler.h sacrifice routine 2024-01-27 23:01:57 +02:00
CMakeLists.txt Moved management of turn order into a new class 2023-08-24 23:34:33 +03:00
CVCMIServer.cpp Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
CVCMIServer.h Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
LobbyNetPackVisitors.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
NetPacksLobbyServer.cpp Added RandomGeneratorUtil::nextItemWeighted convenience method 2024-01-31 00:17:40 +02:00
NetPacksServer.cpp suggested changes 2024-02-01 13:28:08 +02:00
ServerNetPackVisitors.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
ServerSpellCastEnvironment.cpp move SetStackEffect to a separate file 2023-10-24 01:27:52 +03:00
ServerSpellCastEnvironment.h Use optional instead of Json for queries 2023-09-26 13:42:20 +03:00
StdInc.cpp convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
StdInc.h convert line endings from CRLF (Windows) to LF (Linux/Unix) 2023-10-19 16:23:21 +02:00
TurnTimerHandler.cpp Attempt to fix crash 2024-01-20 16:48:05 +02:00
TurnTimerHandler.h propagate turn timer state every second to ensure correct UI 2023-12-22 18:40:28 +02:00
VCMI_server.cbp
VCMI_server.vcxproj