1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
vcmi/lib
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
..
battle Added RandomGeneratorUtil::nextItemWeighted convenience method 2024-01-31 00:17:40 +02:00
bonuses Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
campaign Added text container with map translations to campaign state 2024-01-31 20:01:24 +02:00
constants Added range checks to values read from h3m. 2024-02-05 21:27:55 +02:00
events Replace redundant types with auto for the lvalues of template factory functions for smart pointers 2024-01-17 12:50:00 +00:00
filesystem Fixed decompression of slayer.h3c from french version from gog.com 2024-01-31 16:41:42 +02:00
gameState Added text container with map translations to campaign state 2024-01-31 20:01:24 +02:00
logging
mapObjectConstructors Merge pull request #3574 from SoundSSGood/altar-fixes 2024-02-01 22:27:41 +02:00
mapObjects Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
mapping Fix editor build 2024-02-06 00:40:26 +02:00
minizip
modding Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
networkPacks Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
pathfinder Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
registerTypes Workaround for broken save compatibility 2024-02-05 18:46:48 +02:00
rewardable Added RandomGeneratorUtil::nextItemWeighted convenience method 2024-01-31 00:17:40 +02:00
rmg Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
serializer Skip unresolved identifier from list of allowed heroes/artifacts in vmap 2024-02-05 22:26:53 +02:00
spells Added RandomGeneratorUtil::nextItemWeighted convenience method 2024-01-31 00:17:40 +02:00
vstd
AI_Base.h
ArtifactUtils.cpp arts altar - arts holder 2024-01-27 15:28:21 +02:00
ArtifactUtils.h Remove most of non-const access to VLC entities 2024-01-19 13:54:49 +02:00
BasicTypes.cpp Renamed speed -> getMovementRange, remove misleading default parameter 2024-01-14 17:14:36 +02:00
BattleFieldHandler.cpp Merge remote-tracking branch 'vcmi/master' into develop 2024-01-19 13:49:54 +02:00
BattleFieldHandler.h Fix crash on using two mods that add battlefield with same identifier 2024-01-05 15:58:25 +02:00
CAndroidVMHelper.cpp
CAndroidVMHelper.h
CArtHandler.cpp sacrifice routine 2024-01-27 23:01:57 +02:00
CArtHandler.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
CArtifactInstance.cpp split getBonusLocalFirst into two distinct method: 2024-01-19 13:56:06 +02:00
CArtifactInstance.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CBonusTypeHandler.cpp Fix possible crash on invalid spell 2024-01-24 13:43:35 +02:00
CBonusTypeHandler.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CBuildingHandler.cpp
CBuildingHandler.h
CConfigHandler.cpp
CConfigHandler.h
CConsoleHandler.cpp
CConsoleHandler.h
CCreatureHandler.cpp Added RandomGeneratorUtil::nextItemWeighted convenience method 2024-01-31 00:17:40 +02:00
CCreatureHandler.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
CCreatureSet.cpp Merge pull request #3473 from IvanSavenko/const_lib 2024-01-20 19:22:46 +02:00
CCreatureSet.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CGameInfoCallback.cpp Merge pull request #3574 from SoundSSGood/altar-fixes 2024-02-01 22:27:41 +02:00
CGameInfoCallback.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
CGameInterface.cpp Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CGameInterface.h Remove redundant virtual specifiers 2024-02-10 20:46:13 +01:00
CGeneralTextHandler.cpp Fixed missing translation strings on loading campaign save 2024-01-15 13:10:25 +02:00
CGeneralTextHandler.h Added text container with map translations to campaign state 2024-01-31 20:01:24 +02:00
CHeroHandler.cpp Added workaround for references to old 'torosar ' ID 2024-02-05 21:56:06 +02:00
CHeroHandler.h Added range checks to values read from h3m. 2024-02-05 21:27:55 +02:00
CMakeLists.txt
Color.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CondSh.h
ConstTransitivePtr.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CPlayerState.cpp Slight simplification of bonus system node class 2024-01-19 13:54:49 +02:00
CPlayerState.h Implemented tracking of objects destroyed by players 2024-01-31 01:37:33 +02:00
CRandomGenerator.cpp Add assertions to detect invalid calls 2024-01-16 21:12:57 +02:00
CRandomGenerator.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CScriptingModule.cpp
CScriptingModule.h
CSkillHandler.cpp Remove duplicate semicolons 2024-01-16 19:02:39 +00:00
CSkillHandler.h
CSoundBase.h
CStack.cpp Attempt to make constant bonus system nodes (CCreature / CArtifact) 2024-01-19 13:54:49 +02:00
CStack.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
CStopWatch.h Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
CThreadHelper.cpp
CThreadHelper.h Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
CTownHandler.cpp Removed most of non-const static fields in lib. Reduced header includes. 2024-01-19 13:55:22 +02:00
CTownHandler.h Removed most of non-const static fields in lib. Reduced header includes. 2024-01-19 13:55:22 +02:00
ExtraOptionsInfo.cpp moved to gameconfig 2024-01-20 17:54:15 +01:00
ExtraOptionsInfo.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
FunctionList.h
GameCallbackHolder.h Stabilization 2024-01-19 13:55:22 +02:00
GameConstants.h
GameSettings.cpp code review 2024-01-21 18:12:46 +01:00
GameSettings.h Merge pull request #3530 from Laserlicht/tavern 2024-01-26 13:12:55 +02:00
IBonusTypeHandler.h
IGameCallback.cpp suggested changes 2024-02-01 13:28:08 +02:00
IGameCallback.h Merge pull request #3574 from SoundSSGood/altar-fixes 2024-02-01 22:27:41 +02:00
IGameEventsReceiver.h
IHandlerBase.cpp
IHandlerBase.h Removed most of non-const static fields in lib. Reduced header includes. 2024-01-19 13:55:22 +02:00
int3.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
JsonDetail.cpp fix typo 2023-12-24 09:58:48 +03:00
JsonDetail.h
JsonNode.cpp Removed most of non-const static fields in lib. Reduced header includes. 2024-01-19 13:55:22 +02:00
JsonNode.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
JsonRandom.cpp Merge branch 'master' into 'develop' 2024-01-25 16:23:13 +02:00
JsonRandom.h Code cleanup 2024-01-19 23:02:00 +02:00
Languages.h
LoadProgress.cpp Fix issues introduced by automated replacement of redundant types 2024-01-17 20:12:57 +00:00
LoadProgress.h Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
LogicalExpression.cpp
LogicalExpression.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
MetaString.cpp Fix Grail digging success message 2024-02-01 18:22:11 +02:00
MetaString.h Fix Grail digging success message 2024-02-01 18:22:11 +02:00
ObstacleHandler.cpp
ObstacleHandler.h Define each identifier in a dedicated statement 2024-01-10 00:22:23 +00:00
Point.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
Rect.cpp
Rect.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
ResourceSet.cpp Fixes compilation error "ResourceSet.h:33:21: error: function 'ResourceSet::ResourceSet()' definition is marked dllimport" when building with g++ 12.1.0 2023-12-30 00:29:31 +01:00
ResourceSet.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
RiverHandler.cpp Remove most of non-const access to VLC entities 2024-01-19 13:54:49 +02:00
RiverHandler.h
RoadHandler.cpp Remove most of non-const access to VLC entities 2024-01-19 13:54:49 +02:00
RoadHandler.h
ScopeGuard.h
ScriptHandler.cpp Replace redundant types with auto for the lvalues of template factory functions for smart pointers 2024-01-17 12:50:00 +00:00
ScriptHandler.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
StartInfo.cpp Removed unnecessary access to IHandler::objects 2024-01-19 13:56:06 +02:00
StartInfo.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
StdInc.cpp
StdInc.h
TerrainHandler.cpp
TerrainHandler.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
TextOperations.cpp
TextOperations.h
TurnTimerInfo.cpp Reworked timer widget to show timers for all players 2023-12-22 18:40:28 +02:00
TurnTimerInfo.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
UnlockGuard.h
vcmi_endian.h
VCMI_lib.cbp
VCMI_Lib.cpp Fix build 2024-01-19 13:56:05 +02:00
VCMI_Lib.h Fix build 2024-01-19 13:56:05 +02:00
VCMI_lib.vcxproj
VCMI_lib.vcxproj.filters
VCMIDirs.cpp
VCMIDirs.h