Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cppcheck: unusedFunction check can't be used with '-j' option. Disabling unusedFunction check.
- src/addon/downloader.hpp:107:8: style: Unused private function: 'TransferStatusList::on_transfer_complete' [unusedPrivateFunction]
- void on_transfer_complete(TransferStatusPtr this_status, bool successful);
- ^
- src/addon/downloader.hpp:86:3: style: Class 'TransferStatusList' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TransferStatusList(const std::vector<TransferStatusPtr>& list);
- ^
- src/addon/md5.hpp:54:3: style: Class 'MD5' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- MD5(uint8_t* string); /**< digest string, finalize */
- ^
- src/addon/md5.hpp:55:3: style: Class 'MD5' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- MD5(std::istream& stream); /**< digest stream, finalize */
- ^
- src/addon/md5.hpp:56:3: style: Class 'MD5' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- MD5(FILE *file); /**< digest file, close, finalize */
- ^
- src/addon/md5.hpp:57:3: style: Class 'MD5' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- MD5(std::ifstream& stream); /**< digest stream, close, finalize */
- ^
- src/addon/md5.cpp:333:46: style: Parameter 'input' can be declared as pointer to const [constParameterPointer]
- void MD5::encode (uint8_t* output, uint32_t* input, uint32_t len) {
- ^
- src/addon/md5.cpp:353:45: style: Parameter 'input' can be declared as pointer to const [constParameterPointer]
- void MD5::memcpy (uint8_t* output, uint8_t* input, uint32_t len) {
- ^
- src/audio/openal_sound_source.hpp:43:16: style: Virtual function 'set_reference_distance' is called from constructor 'OpenALSoundSource()' at line 33. Dynamic binding is not used. [virtualCallInConstructor]
- virtual void set_reference_distance(float distance) override;
- ^
- src/audio/openal_sound_source.cpp:33:3: note: Calling set_reference_distance
- set_reference_distance(128);
- ^
- src/audio/openal_sound_source.hpp:43:16: note: set_reference_distance is a virtual function
- virtual void set_reference_distance(float distance) override;
- ^
- src/audio/sound_error.hpp:26:3: style: Class 'SoundError' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SoundError(const std::string& message) throw();
- ^
- src/audio/openal_sound_source.hpp:33:16: style: Virtual function 'stop' is called from destructor '~OpenALSoundSource()' at line 38. Dynamic binding is not used. [virtualCallInConstructor]
- virtual void stop(bool unload_buffer = true) override;
- ^
- src/audio/openal_sound_source.cpp:38:3: note: Calling stop
- stop();
- ^
- src/audio/openal_sound_source.hpp:33:16: note: stop is a virtual function
- virtual void stop(bool unload_buffer = true) override;
- ^
- src/audio/wav_sound_file.hpp:27:3: style: Class 'WavSoundFile' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- WavSoundFile(PHYSFS_file* file);
- ^
- src/audio/sound_manager.cpp:235:53: style: Parameter 'sss' can be declared as pointer to const [constParameterPointer]
- SoundManager::remove_from_update(StreamSoundSource* sss)
- ^
- src/sdk/integration.hpp:20:0: information: Include file: "config.h" not found. [missingInclude]
- #include "config.h"
- ^
- src/math/rect.hpp:72:3: style: Class 'Rect' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Rect(const SDL_Rect& rect) :
- ^
- src/math/sizef.hpp:47:3: style: Class 'Sizef' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Sizef(const Size& rhs);
- ^
- src/math/rectf.hpp:71:3: style: Class 'Rectf' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Rectf(const SDL_FRect& rect) :
- ^
- src/math/rectf.hpp:76:3: style: Class 'Rectf' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Rectf(const Rect& rect);
- ^
- src/video/color.hpp:98:3: style: Class 'Color' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Color(const std::vector<float>& vals);
- ^
- src/video/drawing_transform.hpp:33:3: style: Class 'DrawingTransform' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- DrawingTransform(const Viewport& viewport_) :
- ^
- src/gui/dialog.hpp:52:3: style: Class 'Dialog' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Dialog(bool passive = false, bool auto_clear_dialogs = true);
- ^
- src/supertux/menu/addon_menu.hpp:42:3: style: Class 'AddonMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- AddonMenu(bool language_packs_only = false);
- ^
- src/addon/addon_manager.cpp:881:12: style: The scope of the variable 'm_addons' can be reduced. [variableScope]
- AddonMap m_addons;
- ^
- src/addon/addon_manager.cpp:167:14: style: Variable 'addon' can be declared as reference to const [constVariableReference]
- for (auto& addon : m_addon_config)
- ^
- src/addon/addon_manager.cpp:320:9: style: Variable 'addon' can be declared as reference to const [constVariableReference]
- auto& addon = get_repository_addon(addon_id);
- ^
- src/addon/addon_manager.cpp:335:16: style: Variable 'repository_addon' can be declared as reference to const [constVariableReference]
- Addon& repository_addon = get_repository_addon(addon_id);
- ^
- src/addon/addon_manager.cpp:423:9: style: Variable 'repository_addon' can be declared as reference to const [constVariableReference]
- auto& repository_addon = get_repository_addon(addon_id);
- ^
- src/addon/addon_manager.cpp:473:9: style: Variable 'addon' can be declared as reference to const [constVariableReference]
- auto& addon = get_installed_addon(addon_id);
- ^
- src/addon/addon_manager.cpp:946:14: style: Variable 'langpack' can be declared as reference to const [constVariableReference]
- Addon& langpack = get_repository_addon(addon_id);
- ^
- src/addon/addon_manager.cpp:950:15: style: Variable 'installed_langpack' can be declared as reference to const [constVariableReference]
- auto& installed_langpack = get_installed_addon(addon_id);
- ^
- src/object/moving_sprite.hpp:51:22: warning: The class 'MovingSprite' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Derived function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/badguy.hpp:59:22: warning: The class 'BadGuy' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "badguy"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Derived function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/badguy.hpp:59:22: warning: The class 'BadGuy' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "badguy"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Derived function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/angrystone.hpp:37:22: warning: The class 'AngryStone' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "angrystone"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/angrystone.hpp:37:22: note: Derived function 'AngryStone::class_name'
- static std::string class_name() { return "angrystone"; }
- ^
- src/badguy/angrystone.hpp:39:22: warning: The class 'AngryStone' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Angry Stone"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/angrystone.hpp:39:22: note: Derived function 'AngryStone::display_name'
- static std::string display_name() { return _("Angry Stone"); }
- ^
- src/badguy/angrystone.hpp:37:22: warning: The class 'AngryStone' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "angrystone"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/angrystone.hpp:37:22: note: Derived function 'AngryStone::class_name'
- static std::string class_name() { return "angrystone"; }
- ^
- src/badguy/angrystone.hpp:37:22: warning: The class 'AngryStone' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "angrystone"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/angrystone.hpp:37:22: note: Derived function 'AngryStone::class_name'
- static std::string class_name() { return "angrystone"; }
- ^
- src/object/path.hpp:81:3: style: Class 'Path' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Path(PathGameObject& parent);
- ^
- src/object/path.hpp:67:5: style: Class 'Node' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Node(Path* parent_) :
- ^
- src/object/path_walker.hpp:47:3: style: Class 'PathWalker' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- PathWalker(UID path_uid, bool running = true);
- ^
- src/sprite/sprite_data.hpp:37:3: style: Class 'SpriteData' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SpriteData(const ReaderMapping& mapping);
- ^
- src/sprite/sprite_data.hpp:39:3: style: Class 'SpriteData' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SpriteData(const std::string& image);
- ^
- src/sprite/sprite.hpp:34:3: style: Class 'Sprite' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Sprite(SpriteData& data);
- ^
- src/editor/object_settings.hpp:41:3: style: Class 'ObjectSettings' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ObjectSettings(const std::string& name);
- ^
- src/object/moving_sprite.hpp:45:3: style: Class 'MovingSprite' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- MovingSprite(const ReaderMapping& reader,
- ^
- src/supertux/game_object_iterator.hpp:113:3: style: Class 'GameObjectRange' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GameObjectRange(const GameObjectManager& manager) :
- ^
- src/scripting/badguy.hpp:42:3: style: Class 'BadGuy' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- BadGuy(const ::GameObject& object) :
- ^
- src/squirrel/squirrel_virtual_machine.hpp:33:3: style: Class 'SquirrelVirtualMachine' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SquirrelVirtualMachine(bool enable_debugger);
- ^
- src/badguy/angrystone.hpp:25:3: style: Class 'AngryStone' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- AngryStone(const ReaderMapping& reader);
- ^
- src/supertux/player_status.hpp:42:3: style: Class 'PlayerStatus' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- PlayerStatus(int num_players);
- ^
- src/object/player.hpp:52:5: style: Class 'GrabListener' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GrabListener(Player& player) : m_player(player)
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < BadGuy , scripting :: BadGuy >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < Player , scripting :: Player >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/badguy/angrystone.cpp:92:12: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/angrystone.cpp:95:14: style: Variable 'badguy' can be declared as pointer to const [constVariablePointer]
- auto badguy = this;
- ^
- src/object/explosion.hpp:33:22: warning: The class 'Explosion' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "explosion"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/explosion.hpp:33:22: note: Derived function 'Explosion::class_name'
- static std::string class_name() { return "explosion"; }
- ^
- src/object/explosion.hpp:33:22: warning: The class 'Explosion' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "explosion"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/explosion.hpp:33:22: note: Derived function 'Explosion::class_name'
- static std::string class_name() { return "explosion"; }
- ^
- src/object/explosion.hpp:31:3: style: Class 'Explosion' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Explosion(const ReaderMapping& reader);
- ^
- src/collision/collision_system.hpp:47:3: style: Class 'CollisionSystem' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- CollisionSystem(Sector& sector);
- ^
- src/supertux/sector.hpp:68:3: style: Class 'Sector' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Sector(Level& parent);
- ^
- src/badguy/dispenser.hpp:49:22: warning: The class 'Dispenser' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "dispenser"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/dispenser.hpp:49:22: note: Derived function 'Dispenser::class_name'
- static std::string class_name() { return "dispenser"; }
- ^
- src/badguy/dispenser.hpp:51:22: warning: The class 'Dispenser' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Dispenser"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/dispenser.hpp:51:22: note: Derived function 'Dispenser::display_name'
- static std::string display_name() { return _("Dispenser"); }
- ^
- src/badguy/dispenser.hpp:49:22: warning: The class 'Dispenser' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "dispenser"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/dispenser.hpp:49:22: note: Derived function 'Dispenser::class_name'
- static std::string class_name() { return "dispenser"; }
- ^
- src/badguy/dispenser.hpp:49:22: warning: The class 'Dispenser' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "dispenser"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/dispenser.hpp:49:22: note: Derived function 'Dispenser::class_name'
- static std::string class_name() { return "dispenser"; }
- ^
- src/object/bullet.hpp:48:13: warning: The class 'Bullet' defines member function with name 'get_type' also defined in its parent class 'GameObject'. [duplInheritedMember]
- BonusType get_type() const { return type; }
- ^
- src/supertux/game_object.hpp:123:7: note: Parent function 'GameObject::get_type'
- int get_type() const { return m_type; }
- ^
- src/object/bullet.hpp:48:13: note: Derived function 'Bullet::get_type'
- BonusType get_type() const { return type; }
- ^
- src/util/typed_uid.hpp:62:20: warning: The class 'TypedUID < MovingObject >' defines member function with name 'operator=' also defined in its parent class 'UID'. [duplInheritedMember]
- inline TypedUID& operator=(const UID& other)
- ^
- src/util/uid.hpp:56:8: note: Parent function 'UID::operator='
- UID& operator=(const UID& other) = default;
- ^
- src/util/typed_uid.hpp:62:20: note: Derived function 'TypedUID < MovingObject >::operator='
- inline TypedUID& operator=(const UID& other)
- ^
- src/util/typed_uid.hpp:92:10: warning: The class 'TypedUID < MovingObject >' defines member function with name 'operatorbool' also defined in its parent class 'UID'. [duplInheritedMember]
- inline operator bool() const {
- ^
- src/util/uid.hpp:58:10: note: Parent function 'UID::operatorbool'
- inline operator bool() const {
- ^
- src/util/typed_uid.hpp:92:10: note: Derived function 'TypedUID < MovingObject >::operatorbool'
- inline operator bool() const {
- ^
- src/util/typed_uid.hpp:62:20: warning: The class 'TypedUID < GameObject >' defines member function with name 'operator=' also defined in its parent class 'UID'. [duplInheritedMember]
- inline TypedUID& operator=(const UID& other)
- ^
- src/util/uid.hpp:56:8: note: Parent function 'UID::operator='
- UID& operator=(const UID& other) = default;
- ^
- src/util/typed_uid.hpp:62:20: note: Derived function 'TypedUID < GameObject >::operator='
- inline TypedUID& operator=(const UID& other)
- ^
- src/util/typed_uid.hpp:92:10: warning: The class 'TypedUID < GameObject >' defines member function with name 'operatorbool' also defined in its parent class 'UID'. [duplInheritedMember]
- inline operator bool() const {
- ^
- src/util/uid.hpp:58:10: note: Parent function 'UID::operatorbool'
- inline operator bool() const {
- ^
- src/util/typed_uid.hpp:92:10: note: Derived function 'TypedUID < GameObject >::operatorbool'
- inline operator bool() const {
- ^
- src/util/typed_uid.hpp:62:20: warning: The class 'TypedUID < PathGameObject >' defines member function with name 'operator=' also defined in its parent class 'UID'. [duplInheritedMember]
- inline TypedUID& operator=(const UID& other)
- ^
- src/util/uid.hpp:56:8: note: Parent function 'UID::operator='
- UID& operator=(const UID& other) = default;
- ^
- src/util/typed_uid.hpp:62:20: note: Derived function 'TypedUID < PathGameObject >::operator='
- inline TypedUID& operator=(const UID& other)
- ^
- src/util/typed_uid.hpp:92:10: warning: The class 'TypedUID < PathGameObject >' defines member function with name 'operatorbool' also defined in its parent class 'UID'. [duplInheritedMember]
- inline operator bool() const {
- ^
- src/util/uid.hpp:58:10: note: Parent function 'UID::operatorbool'
- inline operator bool() const {
- ^
- src/util/typed_uid.hpp:92:10: note: Derived function 'TypedUID < PathGameObject >::operatorbool'
- inline operator bool() const {
- ^
- src/util/typed_uid.hpp:62:20: warning: The class 'TypedUID < NodeMarker >' defines member function with name 'operator=' also defined in its parent class 'UID'. [duplInheritedMember]
- inline TypedUID& operator=(const UID& other)
- ^
- src/util/uid.hpp:56:8: note: Parent function 'UID::operator='
- UID& operator=(const UID& other) = default;
- ^
- src/util/typed_uid.hpp:62:20: note: Derived function 'TypedUID < NodeMarker >::operator='
- inline TypedUID& operator=(const UID& other)
- ^
- src/util/typed_uid.hpp:92:10: warning: The class 'TypedUID < NodeMarker >' defines member function with name 'operatorbool' also defined in its parent class 'UID'. [duplInheritedMember]
- inline operator bool() const {
- ^
- src/util/uid.hpp:58:10: note: Parent function 'UID::operatorbool'
- inline operator bool() const {
- ^
- src/util/typed_uid.hpp:92:10: note: Derived function 'TypedUID < NodeMarker >::operatorbool'
- inline operator bool() const {
- ^
- src/scripting/dispenser.hpp:41:3: style: Class 'Dispenser' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Dispenser(const ::GameObject& object) :
- ^
- src/badguy/dispenser.hpp:35:3: style: Class 'Dispenser' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Dispenser(const ReaderMapping& reader);
- ^
- src/object/path_gameobject.hpp:36:3: style: Class 'PathGameObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- PathGameObject(const Vector& pos);
- ^
- src/object/path_gameobject.hpp:37:3: style: Class 'PathGameObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- PathGameObject(const ReaderMapping& mapping, bool backward_compatibility_hack=false);
- ^
- src/object/tilemap.hpp:49:3: style: Class 'TileMap' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TileMap(const TileSet *tileset);
- ^
- src/editor/overlay_widget.hpp:53:3: style: Class 'EditorOverlayWidget' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- EditorOverlayWidget(Editor& editor);
- ^
- src/editor/toolbox_widget.hpp:56:3: style: Class 'EditorToolboxWidget' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- EditorToolboxWidget(Editor& editor);
- ^
- src/editor/layers_widget.hpp:47:3: style: Class 'EditorLayersWidget' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- EditorLayersWidget(Editor& editor);
- ^
- src/editor/scroller_widget.hpp:35:3: style: Class 'EditorScrollerWidget' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- EditorScrollerWidget(Editor& editor);
- ^
- src/object/camera.hpp:47:3: style: Class 'Camera' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Camera(const std::string& name);
- ^
- src/object/camera.hpp:48:3: style: Class 'Camera' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Camera(const ReaderMapping& reader);
- ^
- src/util/writer.hpp:30:3: style: Class 'Writer' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Writer(const std::string& filename);
- ^
- src/util/writer.hpp:31:3: style: Class 'Writer' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Writer(std::ostream& out);
- ^
- src/util/typed_uid.hpp:34:3: style: Class 'TypedUID < MovingObject >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TypedUID(const T* object) : UID() { if (object) *this = object->get_uid(); }
- ^
- src/util/typed_uid.hpp:34:3: style: Class 'TypedUID < GameObject >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TypedUID(const T* object) : UID() { if (object) *this = object->get_uid(); }
- ^
- src/util/typed_uid.hpp:34:3: style: Class 'TypedUID < PathGameObject >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TypedUID(const T* object) : UID() { if (object) *this = object->get_uid(); }
- ^
- src/util/typed_uid.hpp:34:3: style: Class 'TypedUID < NodeMarker >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TypedUID(const T* object) : UID() { if (object) *this = object->get_uid(); }
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < Dispenser , scripting :: Dispenser >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < TileMap , scripting :: TileMap >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < Camera , scripting :: Camera >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/badguy/badguy.cpp:711:11: style: Variable 'cam' can be declared as reference to const [constVariableReference]
- Camera& cam = Sector::get().get_camera();
- ^
- src/badguy/badguy.cpp:190:10: style: Variable 'this_portable' can be declared as pointer to const [constVariablePointer]
- auto this_portable = dynamic_cast<Portable*> (this);
- ^
- src/badguy/badguy.cpp:718:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/badguy.cpp:737:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/badguy.cpp:746:14: style: Variable 'player_' can be declared as pointer to const [constVariablePointer]
- auto player_ = get_nearest_player();
- ^
- src/badguy/bouncing_snowball.hpp:36:22: warning: The class 'BouncingSnowball' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "bouncingsnowball"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/bouncing_snowball.hpp:36:22: note: Derived function 'BouncingSnowball::class_name'
- static std::string class_name() { return "bouncingsnowball"; }
- ^
- src/badguy/bouncing_snowball.hpp:38:22: warning: The class 'BouncingSnowball' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Bouncing Snowball"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/bouncing_snowball.hpp:38:22: note: Derived function 'BouncingSnowball::display_name'
- static std::string display_name() { return _("Bouncing Snowball"); }
- ^
- src/badguy/bouncing_snowball.hpp:36:22: warning: The class 'BouncingSnowball' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "bouncingsnowball"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/bouncing_snowball.hpp:36:22: note: Derived function 'BouncingSnowball::class_name'
- static std::string class_name() { return "bouncingsnowball"; }
- ^
- src/badguy/bouncing_snowball.hpp:36:22: warning: The class 'BouncingSnowball' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "bouncingsnowball"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/bouncing_snowball.hpp:36:22: note: Derived function 'BouncingSnowball::class_name'
- static std::string class_name() { return "bouncingsnowball"; }
- ^
- src/badguy/bouncing_snowball.hpp:25:3: style: Class 'BouncingSnowball' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- BouncingSnowball(const ReaderMapping& reader);
- ^
- src/badguy/walking_badguy.hpp:76:8: warning: The class 'WalkingBadguy' defines member function with name 'is_active' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- bool is_active() const { return BadGuy::is_active(); }
- ^
- src/badguy/badguy.hpp:231:8: note: Parent function 'BadGuy::is_active'
- bool is_active() const;
- ^
- src/badguy/walking_badguy.hpp:76:8: note: Derived function 'WalkingBadguy::is_active'
- bool is_active() const { return BadGuy::is_active(); }
- ^
- src/badguy/captainsnowball.hpp:30:22: warning: The class 'CaptainSnowball' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "captainsnowball"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/captainsnowball.hpp:30:22: note: Derived function 'CaptainSnowball::class_name'
- static std::string class_name() { return "captainsnowball"; }
- ^
- src/badguy/captainsnowball.hpp:32:22: warning: The class 'CaptainSnowball' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Captain Snowball"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/captainsnowball.hpp:32:22: note: Derived function 'CaptainSnowball::display_name'
- static std::string display_name() { return _("Captain Snowball"); }
- ^
- src/badguy/captainsnowball.hpp:30:22: warning: The class 'CaptainSnowball' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "captainsnowball"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/captainsnowball.hpp:30:22: note: Derived function 'CaptainSnowball::class_name'
- static std::string class_name() { return "captainsnowball"; }
- ^
- src/badguy/captainsnowball.hpp:30:22: warning: The class 'CaptainSnowball' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "captainsnowball"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/captainsnowball.hpp:30:22: note: Derived function 'CaptainSnowball::class_name'
- static std::string class_name() { return "captainsnowball"; }
- ^
- src/badguy/captainsnowball.hpp:25:3: style: Class 'CaptainSnowball' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- CaptainSnowball(const ReaderMapping& reader);
- ^
- src/badguy/corrupted_granito.hpp:42:22: warning: The class 'CorruptedGranito' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "corrupted_granito"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/corrupted_granito.hpp:42:22: note: Derived function 'CorruptedGranito::class_name'
- static std::string class_name() { return "corrupted_granito"; }
- ^
- src/badguy/corrupted_granito.hpp:44:22: warning: The class 'CorruptedGranito' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Corrupted Granito"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/corrupted_granito.hpp:44:22: note: Derived function 'CorruptedGranito::display_name'
- static std::string display_name() { return _("Corrupted Granito"); }
- ^
- src/badguy/corrupted_granito.hpp:42:22: warning: The class 'CorruptedGranito' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "corrupted_granito"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/corrupted_granito.hpp:42:22: note: Derived function 'CorruptedGranito::class_name'
- static std::string class_name() { return "corrupted_granito"; }
- ^
- src/badguy/corrupted_granito.hpp:42:22: warning: The class 'CorruptedGranito' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "corrupted_granito"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/corrupted_granito.hpp:42:22: note: Derived function 'CorruptedGranito::class_name'
- static std::string class_name() { return "corrupted_granito"; }
- ^
- src/badguy/corrupted_granito.hpp:31:3: style: Class 'CorruptedGranito' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- CorruptedGranito(const ReaderMapping& reader);
- ^
- src/badguy/corrupted_granito_big.hpp:33:22: warning: The class 'CorruptedGranitoBig' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "corrupted_granito_big"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/corrupted_granito_big.hpp:33:22: note: Derived function 'CorruptedGranitoBig::class_name'
- static std::string class_name() { return "corrupted_granito_big"; }
- ^
- src/badguy/corrupted_granito_big.hpp:35:22: warning: The class 'CorruptedGranitoBig' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Corrupted Big Granito"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/corrupted_granito_big.hpp:35:22: note: Derived function 'CorruptedGranitoBig::display_name'
- static std::string display_name() { return _("Corrupted Big Granito"); }
- ^
- src/badguy/corrupted_granito_big.hpp:33:22: warning: The class 'CorruptedGranitoBig' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "corrupted_granito_big"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/corrupted_granito_big.hpp:33:22: note: Derived function 'CorruptedGranitoBig::class_name'
- static std::string class_name() { return "corrupted_granito_big"; }
- ^
- src/badguy/corrupted_granito_big.hpp:33:22: warning: The class 'CorruptedGranitoBig' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "corrupted_granito_big"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/corrupted_granito_big.hpp:33:22: note: Derived function 'CorruptedGranitoBig::class_name'
- static std::string class_name() { return "corrupted_granito_big"; }
- ^
- src/object/shard.hpp:33:22: warning: The class 'Shard' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "shard"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/shard.hpp:33:22: note: Derived function 'Shard::class_name'
- static std::string class_name() { return "shard"; }
- ^
- src/object/shard.hpp:33:22: warning: The class 'Shard' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "shard"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/shard.hpp:33:22: note: Derived function 'Shard::class_name'
- static std::string class_name() { return "shard"; }
- ^
- src/object/shard.hpp:27:3: style: Class 'Shard' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Shard(const ReaderMapping& reader);
- ^
- src/badguy/corrupted_granito_big.cpp:65:14: style: Local variable 'crack' shadows outer function [shadowFunction]
- const bool crack = try_cracking();
- ^
- src/badguy/corrupted_granito_big.hpp:44:8: note: Shadowed declaration
- void crack();
- ^
- src/badguy/corrupted_granito_big.cpp:65:14: note: Shadow variable
- const bool crack = try_cracking();
- ^
- src/badguy/crystallo.hpp:31:22: warning: The class 'Crystallo' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "crystallo"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/crystallo.hpp:31:22: note: Derived function 'Crystallo::class_name'
- static std::string class_name() { return "crystallo"; }
- ^
- src/badguy/crystallo.hpp:33:22: warning: The class 'Crystallo' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Crystallo"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/crystallo.hpp:33:22: note: Derived function 'Crystallo::display_name'
- static std::string display_name() { return _("Crystallo"); }
- ^
- src/badguy/crystallo.hpp:31:22: warning: The class 'Crystallo' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "crystallo"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/crystallo.hpp:31:22: note: Derived function 'Crystallo::class_name'
- static std::string class_name() { return "crystallo"; }
- ^
- src/badguy/crystallo.hpp:31:22: warning: The class 'Crystallo' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "crystallo"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/crystallo.hpp:31:22: note: Derived function 'Crystallo::class_name'
- static std::string class_name() { return "crystallo"; }
- ^
- src/badguy/rcrystallo.hpp:31:22: warning: The class 'RCrystallo' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "rcrystallo"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/rcrystallo.hpp:31:22: note: Derived function 'RCrystallo::class_name'
- static std::string class_name() { return "rcrystallo"; }
- ^
- src/badguy/rcrystallo.hpp:33:22: warning: The class 'RCrystallo' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Roof Crystallo"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/rcrystallo.hpp:33:22: note: Derived function 'RCrystallo::display_name'
- static std::string display_name() { return _("Roof Crystallo"); }
- ^
- src/badguy/rcrystallo.hpp:31:22: warning: The class 'RCrystallo' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "rcrystallo"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/rcrystallo.hpp:31:22: note: Derived function 'RCrystallo::class_name'
- static std::string class_name() { return "rcrystallo"; }
- ^
- src/badguy/rcrystallo.hpp:31:22: warning: The class 'RCrystallo' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "rcrystallo"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/rcrystallo.hpp:31:22: note: Derived function 'RCrystallo::class_name'
- static std::string class_name() { return "rcrystallo"; }
- ^
- src/badguy/crystallo.hpp:26:3: style: Class 'Crystallo' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Crystallo(const ReaderMapping& reader);
- ^
- src/badguy/rcrystallo.hpp:25:3: style: Class 'RCrystallo' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- RCrystallo(const ReaderMapping& reader);
- ^
- src/badguy/crusher.hpp:69:22: warning: The class 'Crusher' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "crusher"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/crusher.hpp:69:22: note: Derived function 'Crusher::class_name'
- static std::string class_name() { return "crusher"; }
- ^
- src/badguy/crusher.hpp:69:22: warning: The class 'Crusher' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "crusher"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/crusher.hpp:69:22: note: Derived function 'Crusher::class_name'
- static std::string class_name() { return "crusher"; }
- ^
- src/object/brick.hpp:32:22: warning: The class 'Brick' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "brick"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/brick.hpp:32:22: note: Derived function 'Brick::class_name'
- static std::string class_name() { return "brick"; }
- ^
- src/object/brick.hpp:32:22: warning: The class 'Brick' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "brick"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/brick.hpp:32:22: note: Derived function 'Brick::class_name'
- static std::string class_name() { return "brick"; }
- ^
- src/object/brick.hpp:68:22: warning: The class 'HeavyBrick' defines member function with name 'class_name' also defined in its parent class 'Brick'. [duplInheritedMember]
- static std::string class_name() { return "heavy-brick"; }
- ^
- src/object/brick.hpp:32:22: note: Parent function 'Brick::class_name'
- static std::string class_name() { return "brick"; }
- ^
- src/object/brick.hpp:68:22: note: Derived function 'HeavyBrick::class_name'
- static std::string class_name() { return "heavy-brick"; }
- ^
- src/object/brick.hpp:70:22: warning: The class 'HeavyBrick' defines member function with name 'display_name' also defined in its parent class 'Brick'. [duplInheritedMember]
- static std::string display_name() { return _("Heavy Brick"); }
- ^
- src/object/brick.hpp:34:22: note: Parent function 'Brick::display_name'
- static std::string display_name() { return _("Brick"); }
- ^
- src/object/brick.hpp:70:22: note: Derived function 'HeavyBrick::display_name'
- static std::string display_name() { return _("Heavy Brick"); }
- ^
- src/object/brick.hpp:68:22: warning: The class 'HeavyBrick' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "heavy-brick"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/brick.hpp:68:22: note: Derived function 'HeavyBrick::class_name'
- static std::string class_name() { return "heavy-brick"; }
- ^
- src/object/brick.hpp:68:22: warning: The class 'HeavyBrick' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "heavy-brick"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/brick.hpp:68:22: note: Derived function 'HeavyBrick::class_name'
- static std::string class_name() { return "heavy-brick"; }
- ^
- src/object/coin.hpp:42:22: warning: The class 'Coin' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "coin"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/coin.hpp:42:22: note: Derived function 'Coin::class_name'
- static std::string class_name() { return "coin"; }
- ^
- src/object/coin.hpp:42:22: warning: The class 'Coin' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "coin"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/coin.hpp:42:22: note: Derived function 'Coin::class_name'
- static std::string class_name() { return "coin"; }
- ^
- src/object/coin.hpp:95:22: warning: The class 'HeavyCoin' defines member function with name 'class_name' also defined in its parent class 'Coin'. [duplInheritedMember]
- static std::string class_name() { return "heavycoin"; }
- ^
- src/object/coin.hpp:42:22: note: Parent function 'Coin::class_name'
- static std::string class_name() { return "coin"; }
- ^
- src/object/coin.hpp:95:22: note: Derived function 'HeavyCoin::class_name'
- static std::string class_name() { return "heavycoin"; }
- ^
- src/object/coin.hpp:97:22: warning: The class 'HeavyCoin' defines member function with name 'display_name' also defined in its parent class 'Coin'. [duplInheritedMember]
- static std::string display_name() { return _("Heavy Coin"); }
- ^
- src/object/coin.hpp:44:22: note: Parent function 'Coin::display_name'
- static std::string display_name() { return _("Coin"); }
- ^
- src/object/coin.hpp:97:22: note: Derived function 'HeavyCoin::display_name'
- static std::string display_name() { return _("Heavy Coin"); }
- ^
- src/object/coin.hpp:95:22: warning: The class 'HeavyCoin' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "heavycoin"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/coin.hpp:95:22: note: Derived function 'HeavyCoin::class_name'
- static std::string class_name() { return "heavycoin"; }
- ^
- src/object/coin.hpp:95:22: warning: The class 'HeavyCoin' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "heavycoin"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/coin.hpp:95:22: note: Derived function 'HeavyCoin::class_name'
- static std::string class_name() { return "heavycoin"; }
- ^
- src/badguy/crusher.hpp:59:3: style: Class 'Crusher' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Crusher(const ReaderMapping& reader);
- ^
- src/object/brick.hpp:28:3: style: Class 'Brick' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Brick(const ReaderMapping& mapping, const std::string& sprite_name = "images/objects/bonus_block/brick.sprite");
- ^
- src/object/brick.hpp:65:3: style: Class 'HeavyBrick' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- HeavyBrick(const ReaderMapping& mapping);
- ^
- src/object/coin.hpp:34:3: style: Class 'Coin' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Coin(const Vector& pos, bool count_stats = true,
- ^
- src/object/coin.hpp:36:3: style: Class 'Coin' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Coin(const ReaderMapping& reader, bool count_stats = true);
- ^
- src/object/coin.hpp:90:3: style: Class 'HeavyCoin' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- HeavyCoin(const ReaderMapping& reader, bool count_stats = true);
- ^
- src/badguy/crusher.cpp:277:13: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- if (auto* player = Sector::get().get_nearest_player(m_col.m_bbox))
- ^
- src/badguy/crusher.cpp:484:14: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- for (auto* player : Sector::get().get_players())
- ^
- src/badguy/crusher.cpp:590:15: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- if (auto* player = Sector::get().get_nearest_player(m_col.m_bbox))
- ^
- src/badguy/dart.hpp:42:22: warning: The class 'Dart' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "dart"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/dart.hpp:42:22: note: Derived function 'Dart::class_name'
- static std::string class_name() { return "dart"; }
- ^
- src/badguy/dart.hpp:44:22: warning: The class 'Dart' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Dart"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/dart.hpp:44:22: note: Derived function 'Dart::display_name'
- static std::string display_name() { return _("Dart"); }
- ^
- src/badguy/dart.hpp:42:22: warning: The class 'Dart' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "dart"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/dart.hpp:42:22: note: Derived function 'Dart::class_name'
- static std::string class_name() { return "dart"; }
- ^
- src/badguy/dart.hpp:42:22: warning: The class 'Dart' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "dart"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/dart.hpp:42:22: note: Derived function 'Dart::class_name'
- static std::string class_name() { return "dart"; }
- ^
- src/badguy/dart.hpp:28:3: style: Class 'Dart' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Dart(const ReaderMapping& reader);
- ^
- src/badguy/darttrap.hpp:33:22: warning: The class 'DartTrap' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "darttrap"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/darttrap.hpp:33:22: note: Derived function 'DartTrap::class_name'
- static std::string class_name() { return "darttrap"; }
- ^
- src/badguy/darttrap.hpp:35:22: warning: The class 'DartTrap' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Dart Trap"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/darttrap.hpp:35:22: note: Derived function 'DartTrap::display_name'
- static std::string display_name() { return _("Dart Trap"); }
- ^
- src/badguy/darttrap.hpp:33:22: warning: The class 'DartTrap' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "darttrap"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/darttrap.hpp:33:22: note: Derived function 'DartTrap::class_name'
- static std::string class_name() { return "darttrap"; }
- ^
- src/badguy/darttrap.hpp:33:22: warning: The class 'DartTrap' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "darttrap"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/darttrap.hpp:33:22: note: Derived function 'DartTrap::class_name'
- static std::string class_name() { return "darttrap"; }
- ^
- src/badguy/darttrap.hpp:26:3: style: Class 'DartTrap' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- DartTrap(const ReaderMapping& reader);
- ^
- src/badguy/dispenser.cpp:56:16: style: Variable 'badguy' can be declared as reference to const [constVariableReference]
- for (auto& badguy : badguys)
- ^
- src/badguy/dispenser.cpp:142:10: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/dispenser.cpp:178:15: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- Player* player = get_nearest_player();
- ^
- src/badguy/dispenser.cpp:199:10: style: Variable 'obj_badguy' can be declared as pointer to const [constVariablePointer]
- auto obj_badguy = dynamic_cast<BadGuy*>(object);
- ^
- src/badguy/dive_mine.hpp:48:22: warning: The class 'DiveMine' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "dive-mine"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/dive_mine.hpp:48:22: note: Derived function 'DiveMine::class_name'
- static std::string class_name() { return "dive-mine"; }
- ^
- src/badguy/dive_mine.hpp:50:22: warning: The class 'DiveMine' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Dive Mine"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/dive_mine.hpp:50:22: note: Derived function 'DiveMine::display_name'
- static std::string display_name() { return _("Dive Mine"); }
- ^
- src/badguy/dive_mine.hpp:48:22: warning: The class 'DiveMine' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "dive-mine"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/dive_mine.hpp:48:22: note: Derived function 'DiveMine::class_name'
- static std::string class_name() { return "dive-mine"; }
- ^
- src/badguy/dive_mine.hpp:48:22: warning: The class 'DiveMine' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "dive-mine"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/dive_mine.hpp:48:22: note: Derived function 'DiveMine::class_name'
- static std::string class_name() { return "dive-mine"; }
- ^
- src/badguy/dive_mine.hpp:32:3: style: Class 'DiveMine' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- DiveMine(const ReaderMapping& reader);
- ^
- src/badguy/dive_mine.cpp:146:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/fish_swimming.hpp:38:22: warning: The class 'FishSwimming' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "fish-swimming"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/fish_swimming.hpp:38:22: note: Derived function 'FishSwimming::class_name'
- static std::string class_name() { return "fish-swimming"; }
- ^
- src/badguy/fish_swimming.hpp:40:22: warning: The class 'FishSwimming' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Swimming Fish"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/fish_swimming.hpp:40:22: note: Derived function 'FishSwimming::display_name'
- static std::string display_name() { return _("Swimming Fish"); }
- ^
- src/badguy/fish_swimming.hpp:38:22: warning: The class 'FishSwimming' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "fish-swimming"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/fish_swimming.hpp:38:22: note: Derived function 'FishSwimming::class_name'
- static std::string class_name() { return "fish-swimming"; }
- ^
- src/badguy/fish_swimming.hpp:38:22: warning: The class 'FishSwimming' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "fish-swimming"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/fish_swimming.hpp:38:22: note: Derived function 'FishSwimming::class_name'
- static std::string class_name() { return "fish-swimming"; }
- ^
- src/badguy/fish_chasing.hpp:31:22: warning: The class 'FishChasing' defines member function with name 'class_name' also defined in its parent class 'FishSwimming'. [duplInheritedMember]
- static std::string class_name() { return "fish-chasing"; }
- ^
- src/badguy/fish_swimming.hpp:38:22: note: Parent function 'FishSwimming::class_name'
- static std::string class_name() { return "fish-swimming"; }
- ^
- src/badguy/fish_chasing.hpp:31:22: note: Derived function 'FishChasing::class_name'
- static std::string class_name() { return "fish-chasing"; }
- ^
- src/badguy/fish_chasing.hpp:33:22: warning: The class 'FishChasing' defines member function with name 'display_name' also defined in its parent class 'FishSwimming'. [duplInheritedMember]
- static std::string display_name() { return _("Chasing Fish"); }
- ^
- src/badguy/fish_swimming.hpp:40:22: note: Parent function 'FishSwimming::display_name'
- static std::string display_name() { return _("Swimming Fish"); }
- ^
- src/badguy/fish_chasing.hpp:33:22: note: Derived function 'FishChasing::display_name'
- static std::string display_name() { return _("Chasing Fish"); }
- ^
- src/badguy/fish_chasing.hpp:31:22: warning: The class 'FishChasing' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "fish-chasing"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/fish_chasing.hpp:31:22: note: Derived function 'FishChasing::class_name'
- static std::string class_name() { return "fish-chasing"; }
- ^
- src/badguy/fish_chasing.hpp:33:22: warning: The class 'FishChasing' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Chasing Fish"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/fish_chasing.hpp:33:22: note: Derived function 'FishChasing::display_name'
- static std::string display_name() { return _("Chasing Fish"); }
- ^
- src/badguy/fish_chasing.hpp:31:22: warning: The class 'FishChasing' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "fish-chasing"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/fish_chasing.hpp:31:22: note: Derived function 'FishChasing::class_name'
- static std::string class_name() { return "fish-chasing"; }
- ^
- src/badguy/fish_chasing.hpp:31:22: warning: The class 'FishChasing' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "fish-chasing"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/fish_chasing.hpp:31:22: note: Derived function 'FishChasing::class_name'
- static std::string class_name() { return "fish-chasing"; }
- ^
- src/badguy/fish_swimming.hpp:26:3: style: Class 'FishSwimming' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- FishSwimming(const ReaderMapping& reader);
- ^
- src/badguy/fish_chasing.hpp:25:3: style: Class 'FishChasing' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- FishChasing(const ReaderMapping& reader);
- ^
- src/badguy/fish_chasing.cpp:84:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/fish_harmless.hpp:28:22: warning: The class 'FishHarmless' defines member function with name 'class_name' also defined in its parent class 'FishSwimming'. [duplInheritedMember]
- static std::string class_name() { return "fish-harmless"; }
- ^
- src/badguy/fish_swimming.hpp:38:22: note: Parent function 'FishSwimming::class_name'
- static std::string class_name() { return "fish-swimming"; }
- ^
- src/badguy/fish_harmless.hpp:28:22: note: Derived function 'FishHarmless::class_name'
- static std::string class_name() { return "fish-harmless"; }
- ^
- src/badguy/fish_harmless.hpp:30:22: warning: The class 'FishHarmless' defines member function with name 'display_name' also defined in its parent class 'FishSwimming'. [duplInheritedMember]
- static std::string display_name() { return _("Harmless Fish"); }
- ^
- src/badguy/fish_swimming.hpp:40:22: note: Parent function 'FishSwimming::display_name'
- static std::string display_name() { return _("Swimming Fish"); }
- ^
- src/badguy/fish_harmless.hpp:30:22: note: Derived function 'FishHarmless::display_name'
- static std::string display_name() { return _("Harmless Fish"); }
- ^
- src/badguy/fish_harmless.hpp:28:22: warning: The class 'FishHarmless' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "fish-harmless"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/fish_harmless.hpp:28:22: note: Derived function 'FishHarmless::class_name'
- static std::string class_name() { return "fish-harmless"; }
- ^
- src/badguy/fish_harmless.hpp:30:22: warning: The class 'FishHarmless' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Harmless Fish"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/fish_harmless.hpp:30:22: note: Derived function 'FishHarmless::display_name'
- static std::string display_name() { return _("Harmless Fish"); }
- ^
- src/badguy/fish_harmless.hpp:28:22: warning: The class 'FishHarmless' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "fish-harmless"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/fish_harmless.hpp:28:22: note: Derived function 'FishHarmless::class_name'
- static std::string class_name() { return "fish-harmless"; }
- ^
- src/badguy/fish_harmless.hpp:28:22: warning: The class 'FishHarmless' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "fish-harmless"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/fish_harmless.hpp:28:22: note: Derived function 'FishHarmless::class_name'
- static std::string class_name() { return "fish-harmless"; }
- ^
- src/badguy/fish_harmless.hpp:26:3: style: Class 'FishHarmless' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- FishHarmless(const ReaderMapping& reader);
- ^
- src/badguy/fish_jumping.hpp:39:22: warning: The class 'FishJumping' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "fish-jumping"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/fish_jumping.hpp:39:22: note: Derived function 'FishJumping::class_name'
- static std::string class_name() { return "fish-jumping"; }
- ^
- src/badguy/fish_jumping.hpp:41:22: warning: The class 'FishJumping' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Jumping Fish"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/fish_jumping.hpp:41:22: note: Derived function 'FishJumping::display_name'
- static std::string display_name() { return _("Jumping Fish"); }
- ^
- src/badguy/fish_jumping.hpp:39:22: warning: The class 'FishJumping' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "fish-jumping"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/fish_jumping.hpp:39:22: note: Derived function 'FishJumping::class_name'
- static std::string class_name() { return "fish-jumping"; }
- ^
- src/badguy/fish_jumping.hpp:39:22: warning: The class 'FishJumping' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "fish-jumping"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/fish_jumping.hpp:39:22: note: Derived function 'FishJumping::class_name'
- static std::string class_name() { return "fish-jumping"; }
- ^
- src/badguy/fish_jumping.hpp:25:3: style: Class 'FishJumping' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- FishJumping(const ReaderMapping& );
- ^
- src/badguy/fish_swimming.cpp:106:25: style: Condition '!m_frozen' is always true [knownConditionTrueFalse]
- if (hit.bottom && !m_frozen)
- ^
- src/badguy/fish_swimming.cpp:94:7: note: Assuming that condition 'm_frozen' is not redundant
- if (m_frozen) {
- ^
- src/badguy/fish_swimming.cpp:106:25: note: Condition '!m_frozen' is always true
- if (hit.bottom && !m_frozen)
- ^
- src/badguy/flame.hpp:45:22: warning: The class 'Flame' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "flame"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/flame.hpp:45:22: note: Derived function 'Flame::class_name'
- static std::string class_name() { return "flame"; }
- ^
- src/badguy/flame.hpp:47:22: warning: The class 'Flame' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Flame"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/flame.hpp:47:22: note: Derived function 'Flame::display_name'
- static std::string display_name() { return _("Flame"); }
- ^
- src/badguy/flame.hpp:45:22: warning: The class 'Flame' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "flame"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/flame.hpp:45:22: note: Derived function 'Flame::class_name'
- static std::string class_name() { return "flame"; }
- ^
- src/badguy/flame.hpp:45:22: warning: The class 'Flame' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "flame"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/flame.hpp:45:22: note: Derived function 'Flame::class_name'
- static std::string class_name() { return "flame"; }
- ^
- src/badguy/flame.hpp:27:3: style: Class 'Flame' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Flame(const ReaderMapping& reader, int type = -1);
- ^
- src/badguy/flyingsnowball.hpp:31:22: warning: The class 'FlyingSnowBall' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "flyingsnowball"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/flyingsnowball.hpp:31:22: note: Derived function 'FlyingSnowBall::class_name'
- static std::string class_name() { return "flyingsnowball"; }
- ^
- src/badguy/flyingsnowball.hpp:33:22: warning: The class 'FlyingSnowBall' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Flying Snowball"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/flyingsnowball.hpp:33:22: note: Derived function 'FlyingSnowBall::display_name'
- static std::string display_name() { return _("Flying Snowball"); }
- ^
- src/badguy/flyingsnowball.hpp:31:22: warning: The class 'FlyingSnowBall' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "flyingsnowball"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/flyingsnowball.hpp:31:22: note: Derived function 'FlyingSnowBall::class_name'
- static std::string class_name() { return "flyingsnowball"; }
- ^
- src/badguy/flyingsnowball.hpp:31:22: warning: The class 'FlyingSnowBall' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "flyingsnowball"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/flyingsnowball.hpp:31:22: note: Derived function 'FlyingSnowBall::class_name'
- static std::string class_name() { return "flyingsnowball"; }
- ^
- src/badguy/flyingsnowball.hpp:25:3: style: Class 'FlyingSnowBall' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- FlyingSnowBall(const ReaderMapping& reader);
- ^
- src/badguy/flyingsnowball.cpp:89:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/object/lantern.hpp:36:22: warning: The class 'Lantern' defines member function with name 'class_name' also defined in its parent class 'Rock'. [duplInheritedMember]
- static std::string class_name() { return "lantern"; }
- ^
- src/object/rock.hpp:41:22: note: Parent function 'Rock::class_name'
- static std::string class_name() { return "rock"; }
- ^
- src/object/lantern.hpp:36:22: note: Derived function 'Lantern::class_name'
- static std::string class_name() { return "lantern"; }
- ^
- src/object/lantern.hpp:38:22: warning: The class 'Lantern' defines member function with name 'display_name' also defined in its parent class 'Rock'. [duplInheritedMember]
- static std::string display_name() { return _("Lantern"); }
- ^
- src/object/rock.hpp:43:22: note: Parent function 'Rock::display_name'
- static std::string display_name() { return _("Rock"); }
- ^
- src/object/lantern.hpp:38:22: note: Derived function 'Lantern::display_name'
- static std::string display_name() { return _("Lantern"); }
- ^
- src/object/lantern.hpp:36:22: warning: The class 'Lantern' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "lantern"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/lantern.hpp:36:22: note: Derived function 'Lantern::class_name'
- static std::string class_name() { return "lantern"; }
- ^
- src/object/lantern.hpp:36:22: warning: The class 'Lantern' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "lantern"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/lantern.hpp:36:22: note: Derived function 'Lantern::class_name'
- static std::string class_name() { return "lantern"; }
- ^
- src/badguy/ghosttree.hpp:41:22: warning: The class 'GhostTree' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "ghosttree"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/ghosttree.hpp:41:22: note: Derived function 'GhostTree::class_name'
- static std::string class_name() { return "ghosttree"; }
- ^
- src/badguy/ghosttree.hpp:43:22: warning: The class 'GhostTree' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Ghost Tree"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/ghosttree.hpp:43:22: note: Derived function 'GhostTree::display_name'
- static std::string display_name() { return _("Ghost Tree"); }
- ^
- src/badguy/ghosttree.hpp:41:22: warning: The class 'GhostTree' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "ghosttree"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/ghosttree.hpp:41:22: note: Derived function 'GhostTree::class_name'
- static std::string class_name() { return "ghosttree"; }
- ^
- src/badguy/ghosttree.hpp:41:22: warning: The class 'GhostTree' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "ghosttree"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/ghosttree.hpp:41:22: note: Derived function 'GhostTree::class_name'
- static std::string class_name() { return "ghosttree"; }
- ^
- src/object/rock.hpp:41:22: warning: The class 'Rock' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "rock"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/rock.hpp:41:22: note: Derived function 'Rock::class_name'
- static std::string class_name() { return "rock"; }
- ^
- src/object/rock.hpp:41:22: warning: The class 'Rock' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "rock"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/rock.hpp:41:22: note: Derived function 'Rock::class_name'
- static std::string class_name() { return "rock"; }
- ^
- src/badguy/ghosttree.hpp:28:3: style: Class 'GhostTree' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GhostTree(const ReaderMapping& mapping);
- ^
- src/object/rock.hpp:31:3: style: Class 'Rock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Rock(const ReaderMapping& reader, const std::string& spritename = "images/objects/rock/rock.sprite");
- ^
- src/object/rock.hpp:32:3: style: Class 'Rock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Rock(const Vector& pos, const std::string& spritename = "images/objects/rock/rock.sprite");
- ^
- src/object/lantern.hpp:26:3: style: Class 'Lantern' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Lantern(const Vector& pos);
- ^
- src/object/lantern.hpp:27:3: style: Class 'Lantern' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Lantern(const ReaderMapping& reader);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < Rock , scripting :: Rock >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/badguy/ghoul.hpp:29:22: warning: The class 'Ghoul' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "ghoul"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/ghoul.hpp:29:22: note: Derived function 'Ghoul::class_name'
- static std::string class_name() { return "ghoul"; }
- ^
- src/badguy/ghoul.hpp:30:22: warning: The class 'Ghoul' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Ghoul"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/ghoul.hpp:30:22: note: Derived function 'Ghoul::display_name'
- static std::string display_name() { return _("Ghoul"); }
- ^
- src/badguy/ghoul.hpp:29:22: warning: The class 'Ghoul' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "ghoul"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/ghoul.hpp:29:22: note: Derived function 'Ghoul::class_name'
- static std::string class_name() { return "ghoul"; }
- ^
- src/badguy/ghoul.hpp:29:22: warning: The class 'Ghoul' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "ghoul"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/ghoul.hpp:29:22: note: Derived function 'Ghoul::class_name'
- static std::string class_name() { return "ghoul"; }
- ^
- src/badguy/ghoul.hpp:28:3: style: Class 'Ghoul' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Ghoul(const ReaderMapping& reader);
- ^
- src/squirrel/squirrel_scheduler.hpp:31:3: style: Class 'SquirrelScheduler' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SquirrelScheduler(SquirrelVM& vm);
- ^
- src/badguy/ghoul.cpp:106:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/goldbomb.hpp:48:22: warning: The class 'GoldBomb' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "goldbomb"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/goldbomb.hpp:48:22: note: Derived function 'GoldBomb::class_name'
- static std::string class_name() { return "goldbomb"; }
- ^
- src/badguy/goldbomb.hpp:50:22: warning: The class 'GoldBomb' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Gold Bomb"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/goldbomb.hpp:50:22: note: Derived function 'GoldBomb::display_name'
- static std::string display_name() { return _("Gold Bomb"); }
- ^
- src/badguy/goldbomb.hpp:48:22: warning: The class 'GoldBomb' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "goldbomb"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/goldbomb.hpp:48:22: note: Derived function 'GoldBomb::class_name'
- static std::string class_name() { return "goldbomb"; }
- ^
- src/badguy/goldbomb.hpp:48:22: warning: The class 'GoldBomb' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "goldbomb"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/goldbomb.hpp:48:22: note: Derived function 'GoldBomb::class_name'
- static std::string class_name() { return "goldbomb"; }
- ^
- src/badguy/haywire.hpp:44:22: warning: The class 'Haywire' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "haywire"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/haywire.hpp:44:22: note: Derived function 'Haywire::class_name'
- static std::string class_name() { return "haywire"; }
- ^
- src/badguy/haywire.hpp:46:22: warning: The class 'Haywire' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Haywire"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/haywire.hpp:46:22: note: Derived function 'Haywire::display_name'
- static std::string display_name() { return _("Haywire"); }
- ^
- src/badguy/haywire.hpp:44:22: warning: The class 'Haywire' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "haywire"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/haywire.hpp:44:22: note: Derived function 'Haywire::class_name'
- static std::string class_name() { return "haywire"; }
- ^
- src/badguy/haywire.hpp:44:22: warning: The class 'Haywire' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "haywire"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/haywire.hpp:44:22: note: Derived function 'Haywire::class_name'
- static std::string class_name() { return "haywire"; }
- ^
- src/badguy/owl.hpp:43:22: warning: The class 'Owl' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "owl"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/owl.hpp:43:22: note: Derived function 'Owl::class_name'
- static std::string class_name() { return "owl"; }
- ^
- src/badguy/owl.hpp:45:22: warning: The class 'Owl' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Owl"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/owl.hpp:45:22: note: Derived function 'Owl::display_name'
- static std::string display_name() { return _("Owl"); }
- ^
- src/badguy/owl.hpp:43:22: warning: The class 'Owl' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "owl"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/owl.hpp:43:22: note: Derived function 'Owl::class_name'
- static std::string class_name() { return "owl"; }
- ^
- src/badguy/owl.hpp:43:22: warning: The class 'Owl' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "owl"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/owl.hpp:43:22: note: Derived function 'Owl::class_name'
- static std::string class_name() { return "owl"; }
- ^
- src/badguy/goldbomb.hpp:29:3: style: Class 'GoldBomb' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GoldBomb(const ReaderMapping& reader);
- ^
- src/badguy/haywire.hpp:28:3: style: Class 'Haywire' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Haywire(const ReaderMapping& reader);
- ^
- src/badguy/owl.hpp:31:3: style: Class 'Owl' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Owl(const ReaderMapping& reader);
- ^
- src/object/coin_explode.hpp:26:3: style: Class 'CoinExplode' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- CoinExplode(const Vector& pos, bool count_stats = true,
- ^
- src/badguy/goldbomb.cpp:190:10: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = dynamic_cast<Player*>(obj);
- ^
- src/badguy/goldbomb.cpp:193:10: style: Variable 'haywire' can be declared as pointer to const [constVariablePointer]
- auto haywire = dynamic_cast<Haywire*>(obj);
- ^
- src/badguy/goldbomb.cpp:196:10: style: Variable 'bomb' can be declared as pointer to const [constVariablePointer]
- auto bomb = dynamic_cast<Bomb*>(obj);
- ^
- src/badguy/goldbomb.cpp:199:10: style: Variable 'goldbomb' can be declared as pointer to const [constVariablePointer]
- auto goldbomb = dynamic_cast<GoldBomb*>(obj);
- ^
- src/badguy/granito_big.hpp:31:22: warning: The class 'GranitoBig' defines member function with name 'class_name' also defined in its parent class 'Granito'. [duplInheritedMember]
- static std::string class_name() { return "granito_big"; }
- ^
- src/badguy/granito.hpp:37:22: note: Parent function 'Granito::class_name'
- static std::string class_name() { return "granito"; }
- ^
- src/badguy/granito_big.hpp:31:22: note: Derived function 'GranitoBig::class_name'
- static std::string class_name() { return "granito_big"; }
- ^
- src/badguy/granito_big.hpp:33:22: warning: The class 'GranitoBig' defines member function with name 'display_name' also defined in its parent class 'Granito'. [duplInheritedMember]
- static std::string display_name() { return _("Big Granito"); }
- ^
- src/badguy/granito.hpp:39:22: note: Parent function 'Granito::display_name'
- static std::string display_name() { return _("Granito"); }
- ^
- src/badguy/granito_big.hpp:33:22: note: Derived function 'GranitoBig::display_name'
- static std::string display_name() { return _("Big Granito"); }
- ^
- src/badguy/granito_big.hpp:31:22: warning: The class 'GranitoBig' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "granito_big"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/granito_big.hpp:31:22: note: Derived function 'GranitoBig::class_name'
- static std::string class_name() { return "granito_big"; }
- ^
- src/badguy/granito_big.hpp:33:22: warning: The class 'GranitoBig' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Big Granito"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/granito_big.hpp:33:22: note: Derived function 'GranitoBig::display_name'
- static std::string display_name() { return _("Big Granito"); }
- ^
- src/badguy/granito_big.hpp:31:22: warning: The class 'GranitoBig' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "granito_big"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/granito_big.hpp:31:22: note: Derived function 'GranitoBig::class_name'
- static std::string class_name() { return "granito_big"; }
- ^
- src/badguy/granito_big.hpp:31:22: warning: The class 'GranitoBig' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "granito_big"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/granito_big.hpp:31:22: note: Derived function 'GranitoBig::class_name'
- static std::string class_name() { return "granito_big"; }
- ^
- src/badguy/granito.hpp:37:22: warning: The class 'Granito' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "granito"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/granito.hpp:37:22: note: Derived function 'Granito::class_name'
- static std::string class_name() { return "granito"; }
- ^
- src/badguy/granito.hpp:39:22: warning: The class 'Granito' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Granito"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/granito.hpp:39:22: note: Derived function 'Granito::display_name'
- static std::string display_name() { return _("Granito"); }
- ^
- src/badguy/granito.hpp:37:22: warning: The class 'Granito' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "granito"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/granito.hpp:37:22: note: Derived function 'Granito::class_name'
- static std::string class_name() { return "granito"; }
- ^
- src/badguy/granito.hpp:37:22: warning: The class 'Granito' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "granito"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/granito.hpp:37:22: note: Derived function 'Granito::class_name'
- static std::string class_name() { return "granito"; }
- ^
- src/badguy/granito.hpp:28:3: style: Class 'Granito' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Granito(const ReaderMapping& reader,
- ^
- src/badguy/granito_big.hpp:25:3: style: Class 'GranitoBig' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GranitoBig(const ReaderMapping& reader);
- ^
- src/badguy/granito_giant.hpp:30:22: warning: The class 'GranitoGiant' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "granito_giant"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/granito_giant.hpp:30:22: note: Derived function 'GranitoGiant::class_name'
- static std::string class_name() { return "granito_giant"; }
- ^
- src/badguy/granito_giant.hpp:32:22: warning: The class 'GranitoGiant' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Giant Granito"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/granito_giant.hpp:32:22: note: Derived function 'GranitoGiant::display_name'
- static std::string display_name() { return _("Giant Granito"); }
- ^
- src/badguy/granito_giant.hpp:30:22: warning: The class 'GranitoGiant' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "granito_giant"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/granito_giant.hpp:30:22: note: Derived function 'GranitoGiant::class_name'
- static std::string class_name() { return "granito_giant"; }
- ^
- src/badguy/granito_giant.hpp:30:22: warning: The class 'GranitoGiant' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "granito_giant"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/granito_giant.hpp:30:22: note: Derived function 'GranitoGiant::class_name'
- static std::string class_name() { return "granito_giant"; }
- ^
- src/badguy/haywire.cpp:109:9: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto* player = get_nearest_player();
- ^
- src/badguy/jumpy.hpp:38:22: warning: The class 'Jumpy' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "jumpy"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/jumpy.hpp:38:22: note: Derived function 'Jumpy::class_name'
- static std::string class_name() { return "jumpy"; }
- ^
- src/badguy/jumpy.hpp:40:22: warning: The class 'Jumpy' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Jumpy"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/jumpy.hpp:40:22: note: Derived function 'Jumpy::display_name'
- static std::string display_name() { return _("Jumpy"); }
- ^
- src/badguy/jumpy.hpp:38:22: warning: The class 'Jumpy' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "jumpy"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/jumpy.hpp:38:22: note: Derived function 'Jumpy::class_name'
- static std::string class_name() { return "jumpy"; }
- ^
- src/badguy/jumpy.hpp:38:22: warning: The class 'Jumpy' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "jumpy"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/jumpy.hpp:38:22: note: Derived function 'Jumpy::class_name'
- static std::string class_name() { return "jumpy"; }
- ^
- src/badguy/jumpy.hpp:25:3: style: Class 'Jumpy' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Jumpy(const ReaderMapping& reader);
- ^
- src/badguy/igel.hpp:36:22: warning: The class 'Igel' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "igel"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/igel.hpp:36:22: note: Derived function 'Igel::class_name'
- static std::string class_name() { return "igel"; }
- ^
- src/badguy/igel.hpp:38:22: warning: The class 'Igel' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Igel"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/igel.hpp:38:22: note: Derived function 'Igel::display_name'
- static std::string display_name() { return _("Igel"); }
- ^
- src/badguy/igel.hpp:36:22: warning: The class 'Igel' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "igel"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/igel.hpp:36:22: note: Derived function 'Igel::class_name'
- static std::string class_name() { return "igel"; }
- ^
- src/badguy/igel.hpp:36:22: warning: The class 'Igel' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "igel"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/igel.hpp:36:22: note: Derived function 'Igel::class_name'
- static std::string class_name() { return "igel"; }
- ^
- src/badguy/igel.hpp:28:3: style: Class 'Igel' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Igel(const ReaderMapping& reader);
- ^
- src/badguy/jumpy.cpp:110:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/kamikazesnowball.hpp:32:22: warning: The class 'KamikazeSnowball' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "kamikazesnowball"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/kamikazesnowball.hpp:32:22: note: Derived function 'KamikazeSnowball::class_name'
- static std::string class_name() { return "kamikazesnowball"; }
- ^
- src/badguy/kamikazesnowball.hpp:34:22: warning: The class 'KamikazeSnowball' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Kamikaze Snowball"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/kamikazesnowball.hpp:34:22: note: Derived function 'KamikazeSnowball::display_name'
- static std::string display_name() { return _("Kamikaze Snowball"); }
- ^
- src/badguy/kamikazesnowball.hpp:32:22: warning: The class 'KamikazeSnowball' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "kamikazesnowball"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/kamikazesnowball.hpp:32:22: note: Derived function 'KamikazeSnowball::class_name'
- static std::string class_name() { return "kamikazesnowball"; }
- ^
- src/badguy/kamikazesnowball.hpp:32:22: warning: The class 'KamikazeSnowball' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "kamikazesnowball"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/kamikazesnowball.hpp:32:22: note: Derived function 'KamikazeSnowball::class_name'
- static std::string class_name() { return "kamikazesnowball"; }
- ^
- src/badguy/kamikazesnowball.hpp:62:22: warning: The class 'LeafShot' defines member function with name 'class_name' also defined in its parent class 'KamikazeSnowball'. [duplInheritedMember]
- static std::string class_name() { return "leafshot"; }
- ^
- src/badguy/kamikazesnowball.hpp:32:22: note: Parent function 'KamikazeSnowball::class_name'
- static std::string class_name() { return "kamikazesnowball"; }
- ^
- src/badguy/kamikazesnowball.hpp:62:22: note: Derived function 'LeafShot::class_name'
- static std::string class_name() { return "leafshot"; }
- ^
- src/badguy/kamikazesnowball.hpp:64:22: warning: The class 'LeafShot' defines member function with name 'display_name' also defined in its parent class 'KamikazeSnowball'. [duplInheritedMember]
- static std::string display_name() { return _("Leafshot"); }
- ^
- src/badguy/kamikazesnowball.hpp:34:22: note: Parent function 'KamikazeSnowball::display_name'
- static std::string display_name() { return _("Kamikaze Snowball"); }
- ^
- src/badguy/kamikazesnowball.hpp:64:22: note: Derived function 'LeafShot::display_name'
- static std::string display_name() { return _("Leafshot"); }
- ^
- src/badguy/kamikazesnowball.hpp:62:22: warning: The class 'LeafShot' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "leafshot"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/kamikazesnowball.hpp:62:22: note: Derived function 'LeafShot::class_name'
- static std::string class_name() { return "leafshot"; }
- ^
- src/badguy/kamikazesnowball.hpp:64:22: warning: The class 'LeafShot' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Leafshot"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/kamikazesnowball.hpp:64:22: note: Derived function 'LeafShot::display_name'
- static std::string display_name() { return _("Leafshot"); }
- ^
- src/badguy/kamikazesnowball.hpp:62:22: warning: The class 'LeafShot' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "leafshot"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/kamikazesnowball.hpp:62:22: note: Derived function 'LeafShot::class_name'
- static std::string class_name() { return "leafshot"; }
- ^
- src/badguy/kamikazesnowball.hpp:62:22: warning: The class 'LeafShot' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "leafshot"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/kamikazesnowball.hpp:62:22: note: Derived function 'LeafShot::class_name'
- static std::string class_name() { return "leafshot"; }
- ^
- src/badguy/kamikazesnowball.hpp:27:3: style: Class 'KamikazeSnowball' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- KamikazeSnowball(const ReaderMapping& reader,
- ^
- src/badguy/kamikazesnowball.hpp:51:3: style: Class 'LeafShot' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- LeafShot(const ReaderMapping& reader);
- ^
- src/badguy/kugelblitz.hpp:49:8: style: Unused private function: 'Kugelblitz::try_activate' [unusedPrivateFunction]
- void try_activate();
- ^
- src/badguy/kugelblitz.hpp:38:22: warning: The class 'Kugelblitz' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "kugelblitz"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/kugelblitz.hpp:38:22: note: Derived function 'Kugelblitz::class_name'
- static std::string class_name() { return "kugelblitz"; }
- ^
- src/badguy/kugelblitz.hpp:40:22: warning: The class 'Kugelblitz' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Kugelblitz"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/kugelblitz.hpp:40:22: note: Derived function 'Kugelblitz::display_name'
- static std::string display_name() { return _("Kugelblitz"); }
- ^
- src/badguy/kugelblitz.hpp:38:22: warning: The class 'Kugelblitz' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "kugelblitz"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/kugelblitz.hpp:38:22: note: Derived function 'Kugelblitz::class_name'
- static std::string class_name() { return "kugelblitz"; }
- ^
- src/badguy/kugelblitz.hpp:38:22: warning: The class 'Kugelblitz' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "kugelblitz"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/kugelblitz.hpp:38:22: note: Derived function 'Kugelblitz::class_name'
- static std::string class_name() { return "kugelblitz"; }
- ^
- src/badguy/kugelblitz.hpp:25:3: style: Class 'Kugelblitz' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Kugelblitz(const ReaderMapping& reader);
- ^
- src/badguy/kugelblitz.cpp:183:8: style: Variable 'player_' can be declared as pointer to const [constVariablePointer]
- auto player_ = get_nearest_player();
- ^
- src/badguy/kugelblitz.cpp:192:17: style: Variable 'player__' can be declared as pointer to const [constVariablePointer]
- Player* player__ = get_nearest_player();
- ^
- src/badguy/livefire.hpp:36:22: warning: The class 'LiveFire' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "livefire"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/livefire.hpp:36:22: note: Derived function 'LiveFire::class_name'
- static std::string class_name() { return "livefire"; }
- ^
- src/badguy/livefire.hpp:38:22: warning: The class 'LiveFire' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Walking Flame"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/livefire.hpp:38:22: note: Derived function 'LiveFire::display_name'
- static std::string display_name() { return _("Walking Flame"); }
- ^
- src/badguy/livefire.hpp:36:22: warning: The class 'LiveFire' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "livefire"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/livefire.hpp:36:22: note: Derived function 'LiveFire::class_name'
- static std::string class_name() { return "livefire"; }
- ^
- src/badguy/livefire.hpp:36:22: warning: The class 'LiveFire' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "livefire"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/livefire.hpp:36:22: note: Derived function 'LiveFire::class_name'
- static std::string class_name() { return "livefire"; }
- ^
- src/badguy/livefire.hpp:69:22: warning: The class 'LiveFireAsleep' defines member function with name 'class_name' also defined in its parent class 'LiveFire'. [duplInheritedMember]
- static std::string class_name() { return "livefire_asleep"; }
- ^
- src/badguy/livefire.hpp:36:22: note: Parent function 'LiveFire::class_name'
- static std::string class_name() { return "livefire"; }
- ^
- src/badguy/livefire.hpp:69:22: note: Derived function 'LiveFireAsleep::class_name'
- static std::string class_name() { return "livefire_asleep"; }
- ^
- src/badguy/livefire.hpp:71:22: warning: The class 'LiveFireAsleep' defines member function with name 'display_name' also defined in its parent class 'LiveFire'. [duplInheritedMember]
- static std::string display_name() { return _("Sleeping Flame"); }
- ^
- src/badguy/livefire.hpp:38:22: note: Parent function 'LiveFire::display_name'
- static std::string display_name() { return _("Walking Flame"); }
- ^
- src/badguy/livefire.hpp:71:22: note: Derived function 'LiveFireAsleep::display_name'
- static std::string display_name() { return _("Sleeping Flame"); }
- ^
- src/badguy/livefire.hpp:69:22: warning: The class 'LiveFireAsleep' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "livefire_asleep"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/livefire.hpp:69:22: note: Derived function 'LiveFireAsleep::class_name'
- static std::string class_name() { return "livefire_asleep"; }
- ^
- src/badguy/livefire.hpp:71:22: warning: The class 'LiveFireAsleep' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Sleeping Flame"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/livefire.hpp:71:22: note: Derived function 'LiveFireAsleep::display_name'
- static std::string display_name() { return _("Sleeping Flame"); }
- ^
- src/badguy/livefire.hpp:69:22: warning: The class 'LiveFireAsleep' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "livefire_asleep"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/livefire.hpp:69:22: note: Derived function 'LiveFireAsleep::class_name'
- static std::string class_name() { return "livefire_asleep"; }
- ^
- src/badguy/livefire.hpp:69:22: warning: The class 'LiveFireAsleep' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "livefire_asleep"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/livefire.hpp:69:22: note: Derived function 'LiveFireAsleep::class_name'
- static std::string class_name() { return "livefire_asleep"; }
- ^
- src/badguy/livefire.hpp:87:22: warning: The class 'LiveFireDormant' defines member function with name 'class_name' also defined in its parent class 'LiveFire'. [duplInheritedMember]
- static std::string class_name() { return "livefire_dormant"; }
- ^
- src/badguy/livefire.hpp:36:22: note: Parent function 'LiveFire::class_name'
- static std::string class_name() { return "livefire"; }
- ^
- src/badguy/livefire.hpp:87:22: note: Derived function 'LiveFireDormant::class_name'
- static std::string class_name() { return "livefire_dormant"; }
- ^
- src/badguy/livefire.hpp:89:22: warning: The class 'LiveFireDormant' defines member function with name 'display_name' also defined in its parent class 'LiveFire'. [duplInheritedMember]
- static std::string display_name() { return _("Dormant Flame"); }
- ^
- src/badguy/livefire.hpp:38:22: note: Parent function 'LiveFire::display_name'
- static std::string display_name() { return _("Walking Flame"); }
- ^
- src/badguy/livefire.hpp:89:22: note: Derived function 'LiveFireDormant::display_name'
- static std::string display_name() { return _("Dormant Flame"); }
- ^
- src/badguy/livefire.hpp:87:22: warning: The class 'LiveFireDormant' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "livefire_dormant"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/livefire.hpp:87:22: note: Derived function 'LiveFireDormant::class_name'
- static std::string class_name() { return "livefire_dormant"; }
- ^
- src/badguy/livefire.hpp:89:22: warning: The class 'LiveFireDormant' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Dormant Flame"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/livefire.hpp:89:22: note: Derived function 'LiveFireDormant::display_name'
- static std::string display_name() { return _("Dormant Flame"); }
- ^
- src/badguy/livefire.hpp:87:22: warning: The class 'LiveFireDormant' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "livefire_dormant"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/livefire.hpp:87:22: note: Derived function 'LiveFireDormant::class_name'
- static std::string class_name() { return "livefire_dormant"; }
- ^
- src/badguy/livefire.hpp:87:22: warning: The class 'LiveFireDormant' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "livefire_dormant"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/livefire.hpp:87:22: note: Derived function 'LiveFireDormant::class_name'
- static std::string class_name() { return "livefire_dormant"; }
- ^
- src/badguy/livefire.hpp:25:3: style: Class 'LiveFire' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- LiveFire(const ReaderMapping& reader);
- ^
- src/badguy/livefire.hpp:64:3: style: Class 'LiveFireAsleep' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- LiveFireAsleep(const ReaderMapping& reader);
- ^
- src/badguy/livefire.hpp:82:3: style: Class 'LiveFireDormant' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- LiveFireDormant(const ReaderMapping& reader);
- ^
- src/badguy/mole.hpp:36:22: warning: The class 'Mole' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "mole"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/mole.hpp:36:22: note: Derived function 'Mole::class_name'
- static std::string class_name() { return "mole"; }
- ^
- src/badguy/mole.hpp:38:22: warning: The class 'Mole' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Mole"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/mole.hpp:38:22: note: Derived function 'Mole::display_name'
- static std::string display_name() { return _("Mole"); }
- ^
- src/badguy/mole.hpp:36:22: warning: The class 'Mole' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "mole"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/mole.hpp:36:22: note: Derived function 'Mole::class_name'
- static std::string class_name() { return "mole"; }
- ^
- src/badguy/mole.hpp:36:22: warning: The class 'Mole' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "mole"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/mole.hpp:36:22: note: Derived function 'Mole::class_name'
- static std::string class_name() { return "mole"; }
- ^
- src/badguy/mole_rock.hpp:42:22: warning: The class 'MoleRock' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "mole_rock"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/mole_rock.hpp:42:22: note: Derived function 'MoleRock::class_name'
- static std::string class_name() { return "mole_rock"; }
- ^
- src/badguy/mole_rock.hpp:44:22: warning: The class 'MoleRock' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Mole's rock"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/mole_rock.hpp:44:22: note: Derived function 'MoleRock::display_name'
- static std::string display_name() { return _("Mole's rock"); }
- ^
- src/badguy/mole_rock.hpp:42:22: warning: The class 'MoleRock' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "mole_rock"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/mole_rock.hpp:42:22: note: Derived function 'MoleRock::class_name'
- static std::string class_name() { return "mole_rock"; }
- ^
- src/badguy/mole_rock.hpp:42:22: warning: The class 'MoleRock' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "mole_rock"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/mole_rock.hpp:42:22: note: Derived function 'MoleRock::class_name'
- static std::string class_name() { return "mole_rock"; }
- ^
- src/badguy/mole.hpp:25:3: style: Class 'Mole' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Mole(const ReaderMapping& );
- ^
- src/badguy/mole_rock.hpp:26:3: style: Class 'MoleRock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- MoleRock(const ReaderMapping& reader);
- ^
- src/badguy/livefire.cpp:70:10: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/mrbomb.hpp:38:22: warning: The class 'MrBomb' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "mrbomb"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/mrbomb.hpp:38:22: note: Derived function 'MrBomb::class_name'
- static std::string class_name() { return "mrbomb"; }
- ^
- src/badguy/mrbomb.hpp:40:22: warning: The class 'MrBomb' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Mr. Bomb"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/mrbomb.hpp:40:22: note: Derived function 'MrBomb::display_name'
- static std::string display_name() { return _("Mr. Bomb"); }
- ^
- src/badguy/mrbomb.hpp:38:22: warning: The class 'MrBomb' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "mrbomb"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/mrbomb.hpp:38:22: note: Derived function 'MrBomb::class_name'
- static std::string class_name() { return "mrbomb"; }
- ^
- src/badguy/mrbomb.hpp:38:22: warning: The class 'MrBomb' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "mrbomb"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/mrbomb.hpp:38:22: note: Derived function 'MrBomb::class_name'
- static std::string class_name() { return "mrbomb"; }
- ^
- src/badguy/mrbomb.hpp:25:3: style: Class 'MrBomb' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- MrBomb(const ReaderMapping& reader);
- ^
- src/badguy/mriceblock.hpp:47:22: warning: The class 'MrIceBlock' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "mriceblock"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/mriceblock.hpp:47:22: note: Derived function 'MrIceBlock::class_name'
- static std::string class_name() { return "mriceblock"; }
- ^
- src/badguy/mriceblock.hpp:49:22: warning: The class 'MrIceBlock' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Mr. Iceblock"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/mriceblock.hpp:49:22: note: Derived function 'MrIceBlock::display_name'
- static std::string display_name() { return _("Mr. Iceblock"); }
- ^
- src/badguy/mriceblock.hpp:58:8: warning: The class 'MrIceBlock' defines member function with name 'can_break' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- bool can_break();
- ^
- src/badguy/badguy.hpp:87:16: note: Parent function 'BadGuy::can_break'
- virtual bool can_break() const { return false; }
- ^
- src/badguy/mriceblock.hpp:58:8: note: Derived function 'MrIceBlock::can_break'
- bool can_break();
- ^
- src/badguy/mriceblock.hpp:47:22: warning: The class 'MrIceBlock' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "mriceblock"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/mriceblock.hpp:47:22: note: Derived function 'MrIceBlock::class_name'
- static std::string class_name() { return "mriceblock"; }
- ^
- src/badguy/mriceblock.hpp:47:22: warning: The class 'MrIceBlock' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "mriceblock"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/mriceblock.hpp:47:22: note: Derived function 'MrIceBlock::class_name'
- static std::string class_name() { return "mriceblock"; }
- ^
- src/badguy/mriceblock.hpp:26:3: style: Class 'MrIceBlock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- MrIceBlock(const ReaderMapping& reader,
- ^
- src/badguy/mriceblock.cpp:292:10: style: Variable 'movingobject' can be declared as pointer to const [constVariablePointer]
- auto movingobject = dynamic_cast<MovingObject*>(&object);
- ^
- src/badguy/mriceblock.cpp:374:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = dynamic_cast<Player*> (&object);
- ^
- src/badguy/mrtree.hpp:30:22: warning: The class 'MrTree' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "mrtree"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/mrtree.hpp:30:22: note: Derived function 'MrTree::class_name'
- static std::string class_name() { return "mrtree"; }
- ^
- src/badguy/mrtree.hpp:32:22: warning: The class 'MrTree' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Mr. Tree"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/mrtree.hpp:32:22: note: Derived function 'MrTree::display_name'
- static std::string display_name() { return _("Mr. Tree"); }
- ^
- src/badguy/mrtree.hpp:30:22: warning: The class 'MrTree' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "mrtree"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/mrtree.hpp:30:22: note: Derived function 'MrTree::class_name'
- static std::string class_name() { return "mrtree"; }
- ^
- src/badguy/mrtree.hpp:30:22: warning: The class 'MrTree' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "mrtree"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/mrtree.hpp:30:22: note: Derived function 'MrTree::class_name'
- static std::string class_name() { return "mrtree"; }
- ^
- src/badguy/stumpy.hpp:36:22: warning: The class 'Stumpy' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "stumpy"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/stumpy.hpp:36:22: note: Derived function 'Stumpy::class_name'
- static std::string class_name() { return "stumpy"; }
- ^
- src/badguy/stumpy.hpp:38:22: warning: The class 'Stumpy' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Stumpy"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/stumpy.hpp:38:22: note: Derived function 'Stumpy::display_name'
- static std::string display_name() { return _("Stumpy"); }
- ^
- src/badguy/stumpy.hpp:36:22: warning: The class 'Stumpy' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "stumpy"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/stumpy.hpp:36:22: note: Derived function 'Stumpy::class_name'
- static std::string class_name() { return "stumpy"; }
- ^
- src/badguy/stumpy.hpp:36:22: warning: The class 'Stumpy' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "stumpy"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/stumpy.hpp:36:22: note: Derived function 'Stumpy::class_name'
- static std::string class_name() { return "stumpy"; }
- ^
- src/badguy/viciousivy.hpp:31:22: warning: The class 'ViciousIvy' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "viciousivy"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/viciousivy.hpp:31:22: note: Derived function 'ViciousIvy::class_name'
- static std::string class_name() { return "viciousivy"; }
- ^
- src/badguy/viciousivy.hpp:33:22: warning: The class 'ViciousIvy' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Vicious Ivy"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/viciousivy.hpp:33:22: note: Derived function 'ViciousIvy::display_name'
- static std::string display_name() { return _("Vicious Ivy"); }
- ^
- src/badguy/viciousivy.hpp:31:22: warning: The class 'ViciousIvy' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "viciousivy"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/viciousivy.hpp:31:22: note: Derived function 'ViciousIvy::class_name'
- static std::string class_name() { return "viciousivy"; }
- ^
- src/badguy/viciousivy.hpp:31:22: warning: The class 'ViciousIvy' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "viciousivy"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/viciousivy.hpp:31:22: note: Derived function 'ViciousIvy::class_name'
- static std::string class_name() { return "viciousivy"; }
- ^
- src/badguy/mrtree.hpp:25:3: style: Class 'MrTree' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- MrTree(const ReaderMapping& reader);
- ^
- src/badguy/stumpy.hpp:25:3: style: Class 'Stumpy' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Stumpy(const ReaderMapping& reader);
- ^
- src/badguy/viciousivy.hpp:25:3: style: Class 'ViciousIvy' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ViciousIvy(const ReaderMapping& reader);
- ^
- src/badguy/owl.cpp:87:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = Sector::get().get_nearest_player(m_col.m_bbox);
- ^
- src/badguy/owl.cpp:116:12: style: Variable 'obj' can be declared as pointer to const [constVariablePointer]
- auto obj = dynamic_cast<MovingObject*>(carried_object);
- ^
- src/badguy/plant.hpp:32:22: warning: The class 'Plant' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "plant"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/plant.hpp:32:22: note: Derived function 'Plant::class_name'
- static std::string class_name() { return "plant"; }
- ^
- src/badguy/plant.hpp:34:22: warning: The class 'Plant' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Plant"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/plant.hpp:34:22: note: Derived function 'Plant::display_name'
- static std::string display_name() { return _("Plant"); }
- ^
- src/badguy/plant.hpp:32:22: warning: The class 'Plant' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "plant"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/plant.hpp:32:22: note: Derived function 'Plant::class_name'
- static std::string class_name() { return "plant"; }
- ^
- src/badguy/plant.hpp:32:22: warning: The class 'Plant' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "plant"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/plant.hpp:32:22: note: Derived function 'Plant::class_name'
- static std::string class_name() { return "plant"; }
- ^
- src/badguy/plant.hpp:25:3: style: Class 'Plant' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Plant(const ReaderMapping& reader);
- ^
- src/badguy/plant.cpp:75:10: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/rcrystallo.cpp:92:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/scrystallo.hpp:29:22: warning: The class 'SCrystallo' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "scrystallo"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/scrystallo.hpp:29:22: note: Derived function 'SCrystallo::class_name'
- static std::string class_name() { return "scrystallo"; }
- ^
- src/badguy/scrystallo.hpp:31:22: warning: The class 'SCrystallo' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Sleeping Crystallo"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/scrystallo.hpp:31:22: note: Derived function 'SCrystallo::display_name'
- static std::string display_name() { return _("Sleeping Crystallo"); }
- ^
- src/badguy/scrystallo.hpp:29:22: warning: The class 'SCrystallo' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "scrystallo"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/scrystallo.hpp:29:22: note: Derived function 'SCrystallo::class_name'
- static std::string class_name() { return "scrystallo"; }
- ^
- src/badguy/scrystallo.hpp:29:22: warning: The class 'SCrystallo' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "scrystallo"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/scrystallo.hpp:29:22: note: Derived function 'SCrystallo::class_name'
- static std::string class_name() { return "scrystallo"; }
- ^
- src/badguy/scrystallo.hpp:25:3: style: Class 'SCrystallo' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SCrystallo(const ReaderMapping& reader);
- ^
- src/badguy/scrystallo.cpp:90:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/short_fuse.hpp:28:22: warning: The class 'ShortFuse' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "short_fuse"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/short_fuse.hpp:28:22: note: Derived function 'ShortFuse::class_name'
- static std::string class_name() { return "short_fuse"; }
- ^
- src/badguy/short_fuse.hpp:30:22: warning: The class 'ShortFuse' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Short Fuse"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/short_fuse.hpp:30:22: note: Derived function 'ShortFuse::display_name'
- static std::string display_name() { return _("Short Fuse"); }
- ^
- src/badguy/short_fuse.hpp:28:22: warning: The class 'ShortFuse' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "short_fuse"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/short_fuse.hpp:28:22: note: Derived function 'ShortFuse::class_name'
- static std::string class_name() { return "short_fuse"; }
- ^
- src/badguy/short_fuse.hpp:28:22: warning: The class 'ShortFuse' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "short_fuse"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/short_fuse.hpp:28:22: note: Derived function 'ShortFuse::class_name'
- static std::string class_name() { return "short_fuse"; }
- ^
- src/badguy/short_fuse.hpp:26:3: style: Class 'ShortFuse' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ShortFuse(const ReaderMapping& reader);
- ^
- src/badguy/skydive.hpp:41:22: warning: The class 'SkyDive' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "skydive"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/skydive.hpp:41:22: note: Derived function 'SkyDive::class_name'
- static std::string class_name() { return "skydive"; }
- ^
- src/badguy/skydive.hpp:43:22: warning: The class 'SkyDive' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Skydive"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/skydive.hpp:43:22: note: Derived function 'SkyDive::display_name'
- static std::string display_name() { return _("Skydive"); }
- ^
- src/badguy/skydive.hpp:41:22: warning: The class 'SkyDive' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "skydive"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/skydive.hpp:41:22: note: Derived function 'SkyDive::class_name'
- static std::string class_name() { return "skydive"; }
- ^
- src/badguy/skydive.hpp:41:22: warning: The class 'SkyDive' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "skydive"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/skydive.hpp:41:22: note: Derived function 'SkyDive::class_name'
- static std::string class_name() { return "skydive"; }
- ^
- src/badguy/skydive.hpp:25:3: style: Class 'SkyDive' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SkyDive(const ReaderMapping& reader);
- ^
- src/badguy/smartball.hpp:30:22: warning: The class 'SmartBall' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "smartball"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/smartball.hpp:30:22: note: Derived function 'SmartBall::class_name'
- static std::string class_name() { return "smartball"; }
- ^
- src/badguy/smartball.hpp:32:22: warning: The class 'SmartBall' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Mrs. Snowball"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/smartball.hpp:32:22: note: Derived function 'SmartBall::display_name'
- static std::string display_name() { return _("Mrs. Snowball"); }
- ^
- src/badguy/smartball.hpp:30:22: warning: The class 'SmartBall' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "smartball"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/smartball.hpp:30:22: note: Derived function 'SmartBall::class_name'
- static std::string class_name() { return "smartball"; }
- ^
- src/badguy/smartball.hpp:30:22: warning: The class 'SmartBall' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "smartball"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/smartball.hpp:30:22: note: Derived function 'SmartBall::class_name'
- static std::string class_name() { return "smartball"; }
- ^
- src/badguy/smartball.hpp:26:3: style: Class 'SmartBall' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SmartBall(const ReaderMapping& reader);
- ^
- src/badguy/smartblock.hpp:28:22: warning: The class 'SmartBlock' defines member function with name 'class_name' also defined in its parent class 'MrIceBlock'. [duplInheritedMember]
- static std::string class_name() { return "smartblock"; }
- ^
- src/badguy/mriceblock.hpp:47:22: note: Parent function 'MrIceBlock::class_name'
- static std::string class_name() { return "mriceblock"; }
- ^
- src/badguy/smartblock.hpp:28:22: note: Derived function 'SmartBlock::class_name'
- static std::string class_name() { return "smartblock"; }
- ^
- src/badguy/smartblock.hpp:30:22: warning: The class 'SmartBlock' defines member function with name 'display_name' also defined in its parent class 'MrIceBlock'. [duplInheritedMember]
- static std::string display_name() { return _("Mrs. Iceblock"); }
- ^
- src/badguy/mriceblock.hpp:49:22: note: Parent function 'MrIceBlock::display_name'
- static std::string display_name() { return _("Mr. Iceblock"); }
- ^
- src/badguy/smartblock.hpp:30:22: note: Derived function 'SmartBlock::display_name'
- static std::string display_name() { return _("Mrs. Iceblock"); }
- ^
- src/badguy/smartblock.hpp:28:22: warning: The class 'SmartBlock' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "smartblock"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/smartblock.hpp:28:22: note: Derived function 'SmartBlock::class_name'
- static std::string class_name() { return "smartblock"; }
- ^
- src/badguy/smartblock.hpp:30:22: warning: The class 'SmartBlock' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Mrs. Iceblock"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/smartblock.hpp:30:22: note: Derived function 'SmartBlock::display_name'
- static std::string display_name() { return _("Mrs. Iceblock"); }
- ^
- src/badguy/smartblock.hpp:28:22: warning: The class 'SmartBlock' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "smartblock"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/smartblock.hpp:28:22: note: Derived function 'SmartBlock::class_name'
- static std::string class_name() { return "smartblock"; }
- ^
- src/badguy/smartblock.hpp:28:22: warning: The class 'SmartBlock' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "smartblock"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/smartblock.hpp:28:22: note: Derived function 'SmartBlock::class_name'
- static std::string class_name() { return "smartblock"; }
- ^
- src/badguy/smartblock.hpp:25:3: style: Class 'SmartBlock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SmartBlock(const ReaderMapping& reader);
- ^
- src/badguy/snowball.hpp:28:22: warning: The class 'SnowBall' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "snowball"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/snowball.hpp:28:22: note: Derived function 'SnowBall::class_name'
- static std::string class_name() { return "snowball"; }
- ^
- src/badguy/snowball.hpp:30:22: warning: The class 'SnowBall' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Mr. Snowball"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/snowball.hpp:30:22: note: Derived function 'SnowBall::display_name'
- static std::string display_name() { return _("Mr. Snowball"); }
- ^
- src/badguy/snowball.hpp:28:22: warning: The class 'SnowBall' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "snowball"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/snowball.hpp:28:22: note: Derived function 'SnowBall::class_name'
- static std::string class_name() { return "snowball"; }
- ^
- src/badguy/snowball.hpp:28:22: warning: The class 'SnowBall' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "snowball"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/snowball.hpp:28:22: note: Derived function 'SnowBall::class_name'
- static std::string class_name() { return "snowball"; }
- ^
- src/badguy/snowball.hpp:25:3: style: Class 'SnowBall' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SnowBall(const ReaderMapping& reader);
- ^
- src/badguy/snail.hpp:41:22: warning: The class 'Snail' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "snail"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/snail.hpp:41:22: note: Derived function 'Snail::class_name'
- static std::string class_name() { return "snail"; }
- ^
- src/badguy/snail.hpp:43:22: warning: The class 'Snail' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Snail"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/snail.hpp:43:22: note: Derived function 'Snail::display_name'
- static std::string display_name() { return _("Snail"); }
- ^
- src/badguy/snail.hpp:41:22: warning: The class 'Snail' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "snail"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/snail.hpp:41:22: note: Derived function 'Snail::class_name'
- static std::string class_name() { return "snail"; }
- ^
- src/badguy/snail.hpp:41:22: warning: The class 'Snail' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "snail"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/snail.hpp:41:22: note: Derived function 'Snail::class_name'
- static std::string class_name() { return "snail"; }
- ^
- src/badguy/snail.hpp:28:3: style: Class 'Snail' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Snail(const ReaderMapping& reader);
- ^
- src/badguy/snail.cpp:367:23: style: Variable 'movingobject' can be declared as pointer to const [constVariablePointer]
- MovingObject* movingobject = dynamic_cast<MovingObject*>(&object);
- ^
- src/badguy/snowman.hpp:27:22: warning: The class 'Snowman' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "snowman"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/snowman.hpp:27:22: note: Derived function 'Snowman::class_name'
- static std::string class_name() { return "snowman"; }
- ^
- src/badguy/snowman.hpp:29:22: warning: The class 'Snowman' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Snowman"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/snowman.hpp:29:22: note: Derived function 'Snowman::display_name'
- static std::string display_name() { return _("Snowman"); }
- ^
- src/badguy/snowman.hpp:27:22: warning: The class 'Snowman' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "snowman"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/snowman.hpp:27:22: note: Derived function 'Snowman::class_name'
- static std::string class_name() { return "snowman"; }
- ^
- src/badguy/snowman.hpp:27:22: warning: The class 'Snowman' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "snowman"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/snowman.hpp:27:22: note: Derived function 'Snowman::class_name'
- static std::string class_name() { return "snowman"; }
- ^
- src/badguy/snowman.hpp:25:3: style: Class 'Snowman' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Snowman(const ReaderMapping& reader);
- ^
- src/badguy/spidermite.hpp:36:22: warning: The class 'SpiderMite' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "spidermite"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/spidermite.hpp:36:22: note: Derived function 'SpiderMite::class_name'
- static std::string class_name() { return "spidermite"; }
- ^
- src/badguy/spidermite.hpp:38:22: warning: The class 'SpiderMite' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Spidermite"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/spidermite.hpp:38:22: note: Derived function 'SpiderMite::display_name'
- static std::string display_name() { return _("Spidermite"); }
- ^
- src/badguy/spidermite.hpp:36:22: warning: The class 'SpiderMite' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "spidermite"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/spidermite.hpp:36:22: note: Derived function 'SpiderMite::class_name'
- static std::string class_name() { return "spidermite"; }
- ^
- src/badguy/spidermite.hpp:36:22: warning: The class 'SpiderMite' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "spidermite"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/spidermite.hpp:36:22: note: Derived function 'SpiderMite::class_name'
- static std::string class_name() { return "spidermite"; }
- ^
- src/badguy/spidermite.hpp:25:3: style: Class 'SpiderMite' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SpiderMite(const ReaderMapping& reader);
- ^
- src/badguy/spidermite.cpp:83:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/spiky.hpp:29:22: warning: The class 'Spiky' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "spiky"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/spiky.hpp:29:22: note: Derived function 'Spiky::class_name'
- static std::string class_name() { return "spiky"; }
- ^
- src/badguy/spiky.hpp:31:22: warning: The class 'Spiky' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Spiky"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/spiky.hpp:31:22: note: Derived function 'Spiky::display_name'
- static std::string display_name() { return _("Spiky"); }
- ^
- src/badguy/spiky.hpp:29:22: warning: The class 'Spiky' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "spiky"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/spiky.hpp:29:22: note: Derived function 'Spiky::class_name'
- static std::string class_name() { return "spiky"; }
- ^
- src/badguy/spiky.hpp:29:22: warning: The class 'Spiky' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "spiky"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/spiky.hpp:29:22: note: Derived function 'Spiky::class_name'
- static std::string class_name() { return "spiky"; }
- ^
- src/badguy/spiky.hpp:25:3: style: Class 'Spiky' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Spiky(const ReaderMapping& reader);
- ^
- src/badguy/sspiky.hpp:35:22: warning: The class 'SSpiky' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "sspiky"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/sspiky.hpp:35:22: note: Derived function 'SSpiky::class_name'
- static std::string class_name() { return "sspiky"; }
- ^
- src/badguy/sspiky.hpp:37:22: warning: The class 'SSpiky' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Sleeping Spiky"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/sspiky.hpp:37:22: note: Derived function 'SSpiky::display_name'
- static std::string display_name() { return _("Sleeping Spiky"); }
- ^
- src/badguy/sspiky.hpp:35:22: warning: The class 'SSpiky' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "sspiky"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/sspiky.hpp:35:22: note: Derived function 'SSpiky::class_name'
- static std::string class_name() { return "sspiky"; }
- ^
- src/badguy/sspiky.hpp:35:22: warning: The class 'SSpiky' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "sspiky"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/sspiky.hpp:35:22: note: Derived function 'SSpiky::class_name'
- static std::string class_name() { return "sspiky"; }
- ^
- src/badguy/sspiky.hpp:25:3: style: Class 'SSpiky' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SSpiky(const ReaderMapping& reader);
- ^
- src/badguy/sspiky.cpp:66:13: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- Player* player = get_nearest_player();
- ^
- src/badguy/stalactite.hpp:40:22: warning: The class 'Stalactite' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "stalactite"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/stalactite.hpp:40:22: note: Derived function 'Stalactite::class_name'
- static std::string class_name() { return "stalactite"; }
- ^
- src/badguy/stalactite.hpp:42:22: warning: The class 'Stalactite' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Stalactite"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/stalactite.hpp:42:22: note: Derived function 'Stalactite::display_name'
- static std::string display_name() { return _("Stalactite"); }
- ^
- src/badguy/stalactite.hpp:40:22: warning: The class 'Stalactite' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "stalactite"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/stalactite.hpp:40:22: note: Derived function 'Stalactite::class_name'
- static std::string class_name() { return "stalactite"; }
- ^
- src/badguy/stalactite.hpp:40:22: warning: The class 'Stalactite' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "stalactite"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/stalactite.hpp:40:22: note: Derived function 'Stalactite::class_name'
- static std::string class_name() { return "stalactite"; }
- ^
- src/badguy/stalactite.hpp:25:3: style: Class 'Stalactite' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Stalactite(const ReaderMapping& reader);
- ^
- src/badguy/toad.hpp:36:22: warning: The class 'Toad' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "toad"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/toad.hpp:36:22: note: Derived function 'Toad::class_name'
- static std::string class_name() { return "toad"; }
- ^
- src/badguy/toad.hpp:38:22: warning: The class 'Toad' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Toad"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/toad.hpp:38:22: note: Derived function 'Toad::display_name'
- static std::string display_name() { return _("Toad"); }
- ^
- src/badguy/toad.hpp:36:22: warning: The class 'Toad' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "toad"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/toad.hpp:36:22: note: Derived function 'Toad::class_name'
- static std::string class_name() { return "toad"; }
- ^
- src/badguy/toad.hpp:36:22: warning: The class 'Toad' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "toad"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/toad.hpp:36:22: note: Derived function 'Toad::class_name'
- static std::string class_name() { return "toad"; }
- ^
- src/badguy/stalactite.cpp:55:10: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/toad.hpp:26:3: style: Class 'Toad' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Toad(const ReaderMapping& reader);
- ^
- src/badguy/toad.cpp:62:17: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- Player* player = get_nearest_player();
- ^
- src/badguy/totem.hpp:35:22: warning: The class 'Totem' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "totem"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/totem.hpp:35:22: note: Derived function 'Totem::class_name'
- static std::string class_name() { return "totem"; }
- ^
- src/badguy/totem.hpp:37:22: warning: The class 'Totem' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Totem"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/totem.hpp:37:22: note: Derived function 'Totem::display_name'
- static std::string display_name() { return _("Totem"); }
- ^
- src/badguy/totem.hpp:35:22: warning: The class 'Totem' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "totem"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/totem.hpp:35:22: note: Derived function 'Totem::class_name'
- static std::string class_name() { return "totem"; }
- ^
- src/badguy/totem.hpp:35:22: warning: The class 'Totem' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "totem"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/totem.hpp:35:22: note: Derived function 'Totem::class_name'
- static std::string class_name() { return "totem"; }
- ^
- src/badguy/totem.hpp:26:3: style: Class 'Totem' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Totem(const ReaderMapping& reader);
- ^
- src/badguy/treewillowisp.cpp:96:8: style: Variable 'lantern' can be declared as pointer to const [constVariablePointer]
- auto lantern = dynamic_cast<Lantern*>(&other);
- ^
- src/badguy/walking_badguy.hpp:60:16: style: The function 'freeze' overrides a function in a base class but just delegates back to the base class. [uselessOverride]
- virtual void freeze() override;
- ^
- src/badguy/badguy.hpp:109:16: note: Virtual function in base class
- virtual void freeze();
- ^
- src/badguy/walking_badguy.hpp:60:16: note: Function in derived class
- virtual void freeze() override;
- ^
- src/badguy/walking_candle.hpp:39:22: warning: The class 'WalkingCandle' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "walking_candle"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/walking_candle.hpp:39:22: note: Derived function 'WalkingCandle::class_name'
- static std::string class_name() { return "walking_candle"; }
- ^
- src/badguy/walking_candle.hpp:41:22: warning: The class 'WalkingCandle' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Walking Candle"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/walking_candle.hpp:41:22: note: Derived function 'WalkingCandle::display_name'
- static std::string display_name() { return _("Walking Candle"); }
- ^
- src/badguy/walking_candle.hpp:39:22: warning: The class 'WalkingCandle' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "walking_candle"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/walking_candle.hpp:39:22: note: Derived function 'WalkingCandle::class_name'
- static std::string class_name() { return "walking_candle"; }
- ^
- src/badguy/walking_candle.hpp:39:22: warning: The class 'WalkingCandle' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "walking_candle"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/walking_candle.hpp:39:22: note: Derived function 'WalkingCandle::class_name'
- static std::string class_name() { return "walking_candle"; }
- ^
- src/badguy/walking_candle.hpp:25:3: style: Class 'WalkingCandle' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- WalkingCandle(const ReaderMapping& reader);
- ^
- src/badguy/walkingleaf.hpp:31:22: warning: The class 'WalkingLeaf' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "walkingleaf"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/walkingleaf.hpp:31:22: note: Derived function 'WalkingLeaf::class_name'
- static std::string class_name() { return "walkingleaf"; }
- ^
- src/badguy/walkingleaf.hpp:33:22: warning: The class 'WalkingLeaf' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Walking Leaf"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/walkingleaf.hpp:33:22: note: Derived function 'WalkingLeaf::display_name'
- static std::string display_name() { return _("Walking Leaf"); }
- ^
- src/badguy/walkingleaf.hpp:31:22: warning: The class 'WalkingLeaf' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "walkingleaf"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/walkingleaf.hpp:31:22: note: Derived function 'WalkingLeaf::class_name'
- static std::string class_name() { return "walkingleaf"; }
- ^
- src/badguy/walkingleaf.hpp:31:22: warning: The class 'WalkingLeaf' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "walkingleaf"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/walkingleaf.hpp:31:22: note: Derived function 'WalkingLeaf::class_name'
- static std::string class_name() { return "walkingleaf"; }
- ^
- src/badguy/walkingleaf.hpp:26:3: style: Class 'WalkingLeaf' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- WalkingLeaf(const ReaderMapping& reader);
- ^
- src/badguy/willowisp.hpp:55:22: warning: The class 'WillOWisp' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "willowisp"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/willowisp.hpp:55:22: note: Derived function 'WillOWisp::class_name'
- static std::string class_name() { return "willowisp"; }
- ^
- src/badguy/willowisp.hpp:57:22: warning: The class 'WillOWisp' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Will o' Wisp"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/willowisp.hpp:57:22: note: Derived function 'WillOWisp::display_name'
- static std::string display_name() { return _("Will o' Wisp"); }
- ^
- src/badguy/willowisp.hpp:55:22: warning: The class 'WillOWisp' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "willowisp"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/willowisp.hpp:55:22: note: Derived function 'WillOWisp::class_name'
- static std::string class_name() { return "willowisp"; }
- ^
- src/badguy/willowisp.hpp:55:22: warning: The class 'WillOWisp' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "willowisp"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/willowisp.hpp:55:22: note: Derived function 'WillOWisp::class_name'
- static std::string class_name() { return "willowisp"; }
- ^
- src/scripting/willowisp.hpp:43:3: style: Class 'WillOWisp' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- WillOWisp(const ::GameObject& object) :
- ^
- src/badguy/willowisp.hpp:33:3: style: Class 'WillOWisp' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- WillOWisp(const ReaderMapping& reader);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < WillOWisp , scripting :: WillOWisp >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/badguy/willowisp.cpp:119:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/willowisp.cpp:229:8: style: Variable 'lantern' can be declared as pointer to const [constVariablePointer]
- auto lantern = dynamic_cast<Lantern*>(&other);
- ^
- src/badguy/yeti.hpp:36:22: warning: The class 'Yeti' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "yeti"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/yeti.hpp:36:22: note: Derived function 'Yeti::class_name'
- static std::string class_name() { return "yeti"; }
- ^
- src/badguy/yeti.hpp:38:22: warning: The class 'Yeti' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Yeti"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/yeti.hpp:38:22: note: Derived function 'Yeti::display_name'
- static std::string display_name() { return _("Yeti"); }
- ^
- src/badguy/yeti.cpp:243:7: warning: The class 'Yeti' defines member function with name 'kill_squished' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- Yeti::kill_squished(GameObject& object)
- ^
- src/badguy/badguy.hpp:193:8: note: Parent function 'BadGuy::kill_squished'
- void kill_squished(GameObject& object);
- ^
- src/badguy/yeti.cpp:243:7: note: Derived function 'Yeti::kill_squished'
- Yeti::kill_squished(GameObject& object)
- ^
- src/badguy/yeti.hpp:36:22: warning: The class 'Yeti' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "yeti"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/yeti.hpp:36:22: note: Derived function 'Yeti::class_name'
- static std::string class_name() { return "yeti"; }
- ^
- src/badguy/yeti.hpp:36:22: warning: The class 'Yeti' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "yeti"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/yeti.hpp:36:22: note: Derived function 'Yeti::class_name'
- static std::string class_name() { return "yeti"; }
- ^
- src/badguy/yeti_stalactite.hpp:32:22: warning: The class 'YetiStalactite' defines member function with name 'class_name' also defined in its parent class 'Stalactite'. [duplInheritedMember]
- static std::string class_name() { return "yeti_stalactite"; }
- ^
- src/badguy/stalactite.hpp:40:22: note: Parent function 'Stalactite::class_name'
- static std::string class_name() { return "stalactite"; }
- ^
- src/badguy/yeti_stalactite.hpp:32:22: note: Derived function 'YetiStalactite::class_name'
- static std::string class_name() { return "yeti_stalactite"; }
- ^
- src/badguy/yeti_stalactite.hpp:34:22: warning: The class 'YetiStalactite' defines member function with name 'display_name' also defined in its parent class 'Stalactite'. [duplInheritedMember]
- static std::string display_name() { return _("Yeti's Stalactite"); }
- ^
- src/badguy/stalactite.hpp:42:22: note: Parent function 'Stalactite::display_name'
- static std::string display_name() { return _("Stalactite"); }
- ^
- src/badguy/yeti_stalactite.hpp:34:22: note: Derived function 'YetiStalactite::display_name'
- static std::string display_name() { return _("Yeti's Stalactite"); }
- ^
- src/badguy/yeti_stalactite.hpp:32:22: warning: The class 'YetiStalactite' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "yeti_stalactite"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/yeti_stalactite.hpp:32:22: note: Derived function 'YetiStalactite::class_name'
- static std::string class_name() { return "yeti_stalactite"; }
- ^
- src/badguy/yeti_stalactite.hpp:34:22: warning: The class 'YetiStalactite' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Yeti's Stalactite"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/yeti_stalactite.hpp:34:22: note: Derived function 'YetiStalactite::display_name'
- static std::string display_name() { return _("Yeti's Stalactite"); }
- ^
- src/badguy/yeti_stalactite.hpp:32:22: warning: The class 'YetiStalactite' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "yeti_stalactite"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/yeti_stalactite.hpp:32:22: note: Derived function 'YetiStalactite::class_name'
- static std::string class_name() { return "yeti_stalactite"; }
- ^
- src/badguy/yeti_stalactite.hpp:32:22: warning: The class 'YetiStalactite' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "yeti_stalactite"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/yeti_stalactite.hpp:32:22: note: Derived function 'YetiStalactite::class_name'
- static std::string class_name() { return "yeti_stalactite"; }
- ^
- src/badguy/yeti.hpp:26:3: style: Class 'Yeti' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Yeti(const ReaderMapping& mapping);
- ^
- src/badguy/yeti_stalactite.hpp:25:3: style: Class 'YetiStalactite' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- YetiStalactite(const ReaderMapping& mapping);
- ^
- src/badguy/yeti.cpp:289:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = get_nearest_player();
- ^
- src/badguy/zeekling.hpp:37:22: warning: The class 'Zeekling' defines member function with name 'class_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string class_name() { return "zeekling"; }
- ^
- src/badguy/badguy.hpp:59:22: note: Parent function 'BadGuy::class_name'
- static std::string class_name() { return "badguy"; }
- ^
- src/badguy/zeekling.hpp:37:22: note: Derived function 'Zeekling::class_name'
- static std::string class_name() { return "zeekling"; }
- ^
- src/badguy/zeekling.hpp:39:22: warning: The class 'Zeekling' defines member function with name 'display_name' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- static std::string display_name() { return _("Zeekling"); }
- ^
- src/badguy/badguy.hpp:61:22: note: Parent function 'BadGuy::display_name'
- static std::string display_name() { return _("Badguy"); }
- ^
- src/badguy/zeekling.hpp:39:22: note: Derived function 'Zeekling::display_name'
- static std::string display_name() { return _("Zeekling"); }
- ^
- src/badguy/zeekling.hpp:37:22: warning: The class 'Zeekling' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "zeekling"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/badguy/zeekling.hpp:37:22: note: Derived function 'Zeekling::class_name'
- static std::string class_name() { return "zeekling"; }
- ^
- src/badguy/zeekling.hpp:37:22: warning: The class 'Zeekling' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "zeekling"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/badguy/zeekling.hpp:37:22: note: Derived function 'Zeekling::class_name'
- static std::string class_name() { return "zeekling"; }
- ^
- src/badguy/zeekling.hpp:26:3: style: Class 'Zeekling' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Zeekling(const ReaderMapping& reader);
- ^
- src/control/game_controller_manager.hpp:40:3: style: Class 'GameControllerManager' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GameControllerManager(InputManager* parent);
- ^
- src/supertux/console.hpp:61:3: style: Class 'Console' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Console(ConsoleBuffer& buffer);
- ^
- src/control/mobile_controller.hpp:23:0: information: Include file: "config.h" not found. [missingInclude]
- #include "config.h"
- ^
- src/control/mobile_controller.cpp:22:0: information: Include file: "SDL.h" not found. [missingInclude]
- #include "SDL.h"
- ^
- src/control/mobile_controller.cpp:188:14: style: Variable 'i' can be declared as reference to const [constVariableReference]
- for (auto& i : m_fingers)
- ^
- src/collision/collision_system.cpp:61:14: style: Local variable 'collision_object' shadows outer function [shadowFunction]
- for (auto* collision_object : m_objects) {
- ^
- src/collision/collision_system.hpp:98:8: note: Shadowed declaration
- void collision_object(CollisionObject* object1, CollisionObject* object2) const;
- ^
- src/collision/collision_system.cpp:61:14: note: Shadow variable
- for (auto* collision_object : m_objects) {
- ^
- src/collision/collision_system.cpp:78:14: style: Variable 'object' can be declared as pointer to const [constVariableReference]
- for (auto& object : m_objects) {
- ^
- src/collision/collision_system.cpp:300:14: style: Variable 'solids' can be declared as pointer to const [constVariableReference]
- for (auto& solids: m_sector.get_solid_tilemaps())
- ^
- src/collision/collision_system.cpp:670:20: style: Variable 'solids' can be declared as pointer to const [constVariableReference]
- for (const auto& solids : m_sector.get_solid_tilemaps()) {
- ^
- src/collision/collision_system.cpp:706:20: style: Variable 'object' can be declared as pointer to const [constVariableReference]
- for (const auto& object : m_objects) {
- ^
- src/collision/collision_system.cpp:724:20: style: Variable 'object' can be declared as pointer to const [constVariableReference]
- for (const auto& object : m_objects) {
- ^
- src/collision/collision_system.cpp:742:20: style: Variable 'object' can be declared as pointer to const [constVariableReference]
- for (const auto& object : m_objects) {
- ^
- src/editor/bezier_marker.cpp:64:15: warning: The class 'BezierMarker' defines member function with name 'get_parent' also defined in its parent class 'GameObject'. [duplInheritedMember]
- BezierMarker::get_parent() const
- ^
- src/supertux/game_object.hpp:198:22: note: Parent function 'GameObject::get_parent'
- GameObjectManager* get_parent() const { return m_parent; }
- ^
- src/editor/bezier_marker.cpp:64:15: note: Derived function 'BezierMarker::get_parent'
- BezierMarker::get_parent() const
- ^
- src/editor/button_widget.hpp:39:16: style: The function 'update' overrides a function in a base class but is identical to the overridden function [uselessOverride]
- virtual void update(float dt_sec) override;
- ^
- src/editor/widget.hpp:33:16: note: Virtual function in base class
- virtual void update(float dt_sec) {}
- ^
- src/editor/button_widget.hpp:39:16: note: Function in derived class
- virtual void update(float dt_sec) override;
- ^
- src/editor/button_widget.hpp:41:16: style: The function 'setup' overrides a function in a base class but is identical to the overridden function [uselessOverride]
- virtual void setup() override;
- ^
- src/editor/widget.hpp:35:16: note: Virtual function in base class
- virtual void setup() {}
- ^
- src/editor/button_widget.hpp:41:16: note: Function in derived class
- virtual void setup() override;
- ^
- src/editor/button_widget.hpp:42:16: style: The function 'resize' overrides a function in a base class but is identical to the overridden function [uselessOverride]
- virtual void resize() override;
- ^
- src/editor/widget.hpp:36:16: note: Virtual function in base class
- virtual void resize() {}
- ^
- src/editor/button_widget.hpp:42:16: note: Function in derived class
- virtual void resize() override;
- ^
- src/editor/editor.cpp:31:0: information: Include file: "zip_manager.hpp" not found. [missingInclude]
- #include "zip_manager.hpp"
- ^
- src/gui/mousecursor.hpp:23:0: information: Include file: "config.h" not found. [missingInclude]
- #include "config.h"
- ^
- src/supertux/screen_manager.hpp:24:0: information: Include file: "config.h" not found. [missingInclude]
- #include "config.h"
- ^
- src/editor/object_icon.hpp:32:3: style: Class 'ObjectIcon' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ObjectIcon(const ReaderMapping& reader);
- ^
- src/editor/layer_icon.hpp:28:3: style: Class 'LayerIcon' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- LayerIcon(GameObject* layer);
- ^
- src/object/background.hpp:37:3: style: Class 'Background' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Background(const ReaderMapping& reader);
- ^
- src/object/gradient.hpp:33:3: style: Class 'Gradient' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Gradient(const ReaderMapping& reader);
- ^
- src/object/particlesystem.hpp:50:3: style: Class 'ParticleSystem' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ParticleSystem(const ReaderMapping& reader, float max_particle_size = 60);
- ^
- src/object/particlesystem.hpp:51:3: style: Class 'ParticleSystem' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ParticleSystem(float max_particle_size = 60);
- ^
- src/object/particlesystem_interactive.hpp:43:3: style: Class 'ParticleSystem_Interactive' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ParticleSystem_Interactive(const ReaderMapping& mapping);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < Background , scripting :: Background >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < Gradient , scripting :: Gradient >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < ParticleSystem , scripting :: ParticleSystem >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/editor/layer_icon.cpp:52:18: style: Variable 'tilemap' can be declared as pointer to const [constVariablePointer]
- if (TileMap* tilemap = dynamic_cast<TileMap*>(m_layer)) {
- ^
- src/editor/layer_icon.cpp:69:18: style: Variable 'tilemap' can be declared as pointer to const [constVariablePointer]
- if (TileMap* tilemap = dynamic_cast<TileMap*>(m_layer)) {
- ^
- src/editor/layer_icon.cpp:84:13: style: Variable 'tilemap' can be declared as pointer to const [constVariablePointer]
- if (auto* tilemap = dynamic_cast<TileMap*>(m_layer)) {
- ^
- src/editor/layer_icon.cpp:86:20: style: Variable 'bkgrd' can be declared as pointer to const [constVariablePointer]
- } else if (auto* bkgrd = dynamic_cast<Background*>(m_layer)) {
- ^
- src/editor/layer_icon.cpp:88:20: style: Variable 'grd' can be declared as pointer to const [constVariablePointer]
- } else if (auto* grd = dynamic_cast<Gradient*>(m_layer)) {
- ^
- src/editor/layer_icon.cpp:90:20: style: Variable 'ps' can be declared as pointer to const [constVariablePointer]
- } else if (auto* ps = dynamic_cast<ParticleSystem*>(m_layer)) {
- ^
- src/editor/layer_icon.cpp:92:20: style: Variable 'psi' can be declared as pointer to const [constVariablePointer]
- } else if (auto* psi = dynamic_cast<ParticleSystem_Interactive*>(m_layer)) {
- ^
- src/object/particle_zone.hpp:39:22: warning: The class 'ParticleZone' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "particle-zone"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/particle_zone.hpp:39:22: note: Derived function 'ParticleZone::class_name'
- static std::string class_name() { return "particle-zone"; }
- ^
- src/object/custom_particle_system.hpp:44:22: warning: The class 'CustomParticleSystem' defines member function with name 'class_name' also defined in its parent class 'ParticleSystem'. [duplInheritedMember]
- static std::string class_name() { return "particles-custom"; }
- ^
- src/object/particlesystem.hpp:56:22: note: Parent function 'ParticleSystem::class_name'
- static std::string class_name() { return "particle-system"; }
- ^
- src/object/custom_particle_system.hpp:44:22: note: Derived function 'CustomParticleSystem::class_name'
- static std::string class_name() { return "particles-custom"; }
- ^
- src/object/custom_particle_system.hpp:46:22: warning: The class 'CustomParticleSystem' defines member function with name 'display_name' also defined in its parent class 'ParticleSystem'. [duplInheritedMember]
- static std::string display_name() { return _("Custom Particles"); }
- ^
- src/object/particlesystem.hpp:58:22: note: Parent function 'ParticleSystem::display_name'
- static std::string display_name() { return _("Particle system"); }
- ^
- src/object/custom_particle_system.hpp:46:22: note: Derived function 'CustomParticleSystem::display_name'
- static std::string display_name() { return _("Custom Particles"); }
- ^
- src/gui/mousecursor.hpp:46:23: warning: The class 'MouseCursor' defines member function with name 'current' also defined in its parent class 'Currenton < MouseCursor >'. [duplInheritedMember]
- static MouseCursor* current() { return current_; }
- ^
- src/util/currenton.hpp:53:13: note: Parent function 'Currenton < MouseCursor >::current'
- static C* current() { return static_cast<C*>(s_current); }
- ^
- src/gui/mousecursor.hpp:46:23: note: Derived function 'MouseCursor::current'
- static MouseCursor* current() { return current_; }
- ^
- src/object/spawnpoint.hpp:46:22: warning: The class 'SpawnPointMarker' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "spawnpoint"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/spawnpoint.hpp:46:22: note: Derived function 'SpawnPointMarker::class_name'
- static std::string class_name() { return "spawnpoint"; }
- ^
- src/editor/object_group.hpp:31:3: style: Class 'ObjectGroup' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ObjectGroup(const ReaderMapping& reader);
- ^
- src/interface/control_button.hpp:25:3: style: Class 'ControlButton' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ControlButton(std::string label);
- ^
- src/object/particle_zone.hpp:33:3: style: Class 'ParticleZone' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ParticleZone(const ReaderMapping& reader);
- ^
- src/object/custom_particle_system.hpp:36:3: style: Class 'CustomParticleSystem' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- CustomParticleSystem(const ReaderMapping& reader);
- ^
- src/object/custom_particle_system.hpp:147:5: style: Class 'SpriteProperties' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SpriteProperties(const SurfacePtr& surface) :
- ^
- src/editor/tool_icon.hpp:31:3: style: Class 'ToolIcon' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ToolIcon(const std::string& icon);
- ^
- src/gui/mousecursor.hpp:53:3: style: Class 'MouseCursor' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- MouseCursor(SpritePtr sprite);
- ^
- src/object/spawnpoint.hpp:32:3: style: Class 'SpawnPointMarker' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SpawnPointMarker(const ReaderMapping& mapping);
- ^
- src/physfs/ifile_stream.hpp:29:3: style: Class 'IFileStream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- IFileStream(const std::string& filename);
- ^
- src/squirrel/squirrel_thread_queue.hpp:31:3: style: Class 'SquirrelThreadQueue' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SquirrelThreadQueue(SquirrelVM& vm);
- ^
- src/supertux/screen_manager.hpp:94:5: style: Struct 'Action' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Action(Type type_,
- ^
- src/video/compositor.hpp:36:3: style: Class 'Compositor' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Compositor(VideoSystem& video_system);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < CustomParticleSystem , scripting :: CustomParticles >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/interface/control_enum.hpp:117:7: style: The scope of the variable 'i' can be reduced. [variableScope]
- int i = 0;
- ^
- src/object/particle_zone.hpp:75:39: style: Parameter 'particle_name' can be declared as reference to const [constParameterReference]
- void set_particle_name(std::string& particle_name) {m_particle_name = particle_name;}
- ^
- src/editor/editor.cpp:85:11: style: Variable 'self' can be declared as pointer to const [constVariablePointer]
- auto* self = Editor::current();
- ^
- src/editor/editor.cpp:332:10: style: Variable 'current_world' can be declared as pointer to const [constVariablePointer]
- World* current_world = m_world.get();
- ^
- src/editor/object_menu.hpp:40:3: style: Class 'ObjectMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ObjectMenu(GameObject* go, const std::function<bool (GameObject*)>& remove_function = {});
- ^
- src/editor/layers_widget.hpp:52:16: style: The function 'on_mouse_button_up' overrides a function in a base class but is identical to the overridden function [uselessOverride]
- virtual bool on_mouse_button_up(const SDL_MouseButtonEvent& button) override;
- ^
- src/editor/widget.hpp:38:16: note: Virtual function in base class
- virtual bool on_mouse_button_up(const SDL_MouseButtonEvent& button) { return false; }
- ^
- src/editor/layers_widget.hpp:52:16: note: Function in derived class
- virtual bool on_mouse_button_up(const SDL_MouseButtonEvent& button) override;
- ^
- src/editor/layers_widget.cpp:400:39: warning: Access of moved variable 'icon'. [accessMoved]
- m_layer_icons.push_back(std::move(icon));
- ^
- src/editor/layers_widget.cpp:393:31: note: Calling std::move(icon)
- m_layer_icons.insert(i, std::move(icon));
- ^
- src/editor/layers_widget.cpp:400:39: note: Access of moved variable 'icon'.
- m_layer_icons.push_back(std::move(icon));
- ^
- src/editor/bezier_marker.hpp:40:15: warning: The class 'BezierMarker' defines member function with name 'get_parent' also defined in its parent class 'GameObject'. [duplInheritedMember]
- NodeMarker* get_parent() const;
- ^
- src/supertux/game_object.hpp:198:22: note: Parent function 'GameObject::get_parent'
- GameObjectManager* get_parent() const { return m_parent; }
- ^
- src/editor/bezier_marker.hpp:40:15: note: Derived function 'BezierMarker::get_parent'
- NodeMarker* get_parent() const;
- ^
- src/gui/menu_item.hpp:26:3: style: Class 'MenuItem' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- MenuItem(const std::string& text, int id = -1);
- ^
- src/gui/menu_object_select.hpp:30:3: style: Class 'ObjectSelectMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ObjectSelectMenu(std::vector<std::unique_ptr<GameObject>>& objects, uint8_t get_objects_param = 0,
- ^
- src/gui/item_stringselect.hpp:40:16: style: The function 'changes_width' overrides a function in a base class but is identical to the overridden function [uselessOverride]
- virtual bool changes_width() const override {
- ^
- src/gui/menu_item.hpp:76:16: note: Virtual function in base class
- virtual bool changes_width() const {
- ^
- src/gui/item_stringselect.hpp:40:16: note: Function in derived class
- virtual bool changes_width() const override {
- ^
- src/editor/object_option.cpp:306:8: style: Variable 'selected_id' can be declared as pointer to const [constVariablePointer]
- int* selected_id = static_cast<int*>(m_value_pointer);
- ^
- src/editor/object_settings.cpp:257:46: warning: Function 'add_level' argument order different: declaration 'text, value_ptr, basedir, key, flags' definition 'text, value_ptr, key, basedir, flags' [funcArgOrderDifferent]
- ObjectSettings::add_level(const std::string& text, std::string* value_ptr, const std::string& key,
- ^
- src/editor/object_settings.hpp:133:37: note: Function 'add_level' argument order different: declaration 'text, value_ptr, basedir, key, flags' definition 'text, value_ptr, key, basedir, flags'
- void add_level(const std::string& text, std::string* value_ptr, const std::string& basedir,
- ^
- src/editor/object_settings.cpp:257:46: note: Function 'add_level' argument order different: declaration 'text, value_ptr, basedir, key, flags' definition 'text, value_ptr, key, basedir, flags'
- ObjectSettings::add_level(const std::string& text, std::string* value_ptr, const std::string& key,
- ^
- src/worldmap/worldmap_object.hpp:40:22: warning: The class 'WorldMapObject' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "worldmap-object"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/worldmap/worldmap_object.hpp:40:22: note: Derived function 'WorldMapObject::class_name'
- static std::string class_name() { return "worldmap-object"; }
- ^
- src/worldmap/worldmap_object.hpp:40:22: warning: The class 'WorldMapObject' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "worldmap-object"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/worldmap/worldmap_object.hpp:40:22: note: Derived function 'WorldMapObject::class_name'
- static std::string class_name() { return "worldmap-object"; }
- ^
- src/worldmap/worldmap_object.hpp:37:3: style: Class 'WorldMapObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- WorldMapObject(const ReaderMapping& mapping);
- ^
- src/editor/overlay_widget.cpp:1401:7: warning: Identical condition '!m_editor.get_selected_tilemap()', second condition is always false [identicalConditionAfterEarlyExit]
- if (!current_tm) return;
- ^
- src/editor/overlay_widget.cpp:1400:50: note: 'current_tm' is assigned value 'm_editor.get_selected_tilemap()' here.
- auto current_tm = m_editor.get_selected_tilemap();
- ^
- src/editor/overlay_widget.cpp:1398:7: note: If condition '!m_editor.get_selected_tilemap()' is true, the function will return/exit
- if (!m_editor.get_selected_tilemap()) return;
- ^
- src/editor/overlay_widget.cpp:1401:7: note: Testing identical condition '!m_editor.get_selected_tilemap()'
- if (!current_tm) return;
- ^
- src/editor/overlay_widget.cpp:436:8: style: Variable 'tilemap' can be declared as pointer to const [constVariablePointer]
- auto tilemap = m_editor.get_selected_tilemap();
- ^
- src/editor/overlay_widget.cpp:672:8: style: Variable 'path_obj' can be declared as pointer to const [constVariablePointer]
- auto path_obj = dynamic_cast<PathObject*>(m_dragged_object.get());
- ^
- src/editor/overlay_widget.cpp:774:12: style: Variable 'pm' can be declared as pointer to const [constVariablePointer]
- auto pm = dynamic_cast<MarkerObject*>(m_dragged_object.get());
- ^
- src/editor/overlay_widget.cpp:1041:8: style: Variable 'tileset' can be declared as pointer to const [constVariablePointer]
- auto tileset = m_editor.get_tileset();
- ^
- src/editor/overlay_widget.cpp:1042:8: style: Variable 'tilemap' can be declared as pointer to const [constVariablePointer]
- auto tilemap = m_editor.get_selected_tilemap();
- ^
- src/editor/overlay_widget.cpp:1257:10: style: Variable 'tilemap' can be declared as pointer to const [constVariablePointer]
- auto tilemap = m_editor.get_selected_tilemap();
- ^
- src/editor/overlay_widget.cpp:1296:8: style: Variable 'tilemap' can be declared as pointer to const [constVariablePointer]
- auto tilemap = m_editor.get_selected_tilemap();
- ^
- src/editor/overlay_widget.cpp:1332:8: style: Variable 'current_tm' can be declared as pointer to const [constVariablePointer]
- auto current_tm = m_editor.get_selected_tilemap();
- ^
- src/editor/overlay_widget.cpp:1400:8: style: Variable 'current_tm' can be declared as pointer to const [constVariablePointer]
- auto current_tm = m_editor.get_selected_tilemap();
- ^
- src/editor/overlay_widget.cpp:1423:17: style: Variable 'node1' can be declared as pointer to const [constVariablePointer]
- Path::Node* node1 = &(*i);
- ^
- src/editor/overlay_widget.cpp:1424:17: style: Variable 'node2' can be declared as pointer to const [constVariablePointer]
- Path::Node* node2;
- ^
- src/editor/overlay_widget.cpp:1496:10: style: Variable 'sel_tilemap' can be declared as pointer to const [constVariablePointer]
- auto sel_tilemap = m_editor.get_selected_tilemap();
- ^
- src/editor/overlay_widget.cpp:1583:8: style: Variable 'tilemap' can be declared as pointer to const [constVariablePointer]
- auto tilemap = m_editor.get_selected_tilemap();
- ^
- src/editor/overlay_widget.cpp:1593:8: style: Variable 'tilemap' can be declared as pointer to const [constVariablePointer]
- auto tilemap = m_editor.get_selected_tilemap();
- ^
- src/editor/overlay_widget.cpp:1610:8: style: Variable 'tilemap' can be declared as pointer to const [constVariablePointer]
- auto tilemap = m_editor.get_selected_tilemap();
- ^
- src/supertux/menu/particle_editor_save_as.hpp:31:3: style: Class 'ParticleEditorSaveAs' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ParticleEditorSaveAs(std::function<void(bool)> callback);
- ^
- src/editor/toolbox_widget.cpp:148:14: style: Variable 'tile_ID' can be declared as reference to const [constVariableReference]
- for (auto& tile_ID : m_active_tilegroup->tiles)
- ^
- src/gui/item_action.hpp:25:3: style: Class 'ItemAction' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ItemAction(const std::string& text, int id = -1, std::function<void()> callback = {});
- ^
- src/gui/item_back.hpp:25:3: style: Class 'ItemBack' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ItemBack(const std::string& text, int id = -1);
- ^
- src/gui/menu_color.hpp:25:3: style: Class 'ColorMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ColorMenu(Color* color_);
- ^
- src/util/colorspace_oklab.hpp:28:3: style: Struct 'ColorOKLCh' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ColorOKLCh(Color& c);
- ^
- src/gui/item_colorchannel_oklab.cpp:216:46: style: Parameter 'col_oklch_clipped' can be declared as reference to const [constParameterReference]
- ItemColorChannelOKLab::set_color(ColorOKLCh& col_oklch_clipped,
- ^
- src/gui/item_colorchannel_oklab.cpp:217:15: style: Parameter 'col_oklch_store' can be declared as reference to const [constParameterReference]
- ColorOKLCh& col_oklch_store)
- ^
- src/gui/item_colorchannel_rgba.cpp:99:16: style: Variable 'c' can be declared as reference to const [constVariableReference]
- for (auto& c : txt) {
- ^
- src/gui/item_colordisplay.hpp:27:3: style: Class 'ItemColorDisplay' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ItemColorDisplay(Color* color, int id_ = -1);
- ^
- src/gui/item_floatfield.cpp:125:14: style: Variable 'c' can be declared as reference to const [constVariableReference]
- for (auto& c : text)
- ^
- src/gui/item_floatfield.cpp:85:16: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use replace() instead. [uselessCallsSubstr]
- *input = input->substr(0, input->size() - left_offset_pos) + '.' +
- ^
- src/gui/item_floatfield.cpp:92:14: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use replace() instead. [uselessCallsSubstr]
- *input = input->substr(0, input->size() - left_offset_pos) + c +
- ^
- src/gui/item_images.hpp:26:3: style: Class 'ItemImages' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ItemImages(const std::string& image_path, int max_image_width = 0, int max_image_height = 0, int id = -1);
- ^
- src/gui/item_images.hpp:27:3: style: Class 'ItemImages' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ItemImages(const std::vector<std::string>& image_paths, int max_image_width = 0, int max_image_height = 0, int id = -1);
- ^
- src/gui/item_intfield.cpp:98:14: style: Variable 'c' can be declared as reference to const [constVariableReference]
- for (auto& c : text)
- ^
- src/gui/item_intfield.cpp:68:12: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use replace() instead. [uselessCallsSubstr]
- *input = input->substr(0, input->size() - left_offset_pos) + c +
- ^
- src/gui/item_label.hpp:25:3: style: Class 'ItemLabel' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ItemLabel(const std::string& text_);
- ^
- src/gui/menu_script.hpp:25:3: style: Class 'ScriptMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ScriptMenu(std::string* script_);
- ^
- src/gui/item_script_line.hpp:26:3: style: Class 'ItemScriptLine' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ItemScriptLine(std::string* input_, int id_ = -1);
- ^
- src/gui/menu_string_array.hpp:27:3: style: Class 'StringArrayMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- StringArrayMenu(std::vector<std::string>& items);
- ^
- src/gui/item_textfield.cpp:151:12: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use replace() instead. [uselessCallsSubstr]
- *input = input->substr(0, input->size() - left_offset_pos) + text +
- ^
- src/gui/item_textfield.cpp:217:16: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use replace() instead. [uselessCallsSubstr]
- *input = input->substr(0, index) +
- ^
- src/gui/item_textfield.cpp:239:16: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use replace() instead. [uselessCallsSubstr]
- *input = input->substr(0, input->size() - m_cursor_left_offset) +
- ^
- src/gui/menu.cpp:500:18: style: Local variable 'm_items' shadows outer variable [shadowVariable]
- menu_action(*m_items[m_active_item]);
- ^
- src/gui/menu.hpp:159:43: note: Shadowed declaration
- std::vector<std::unique_ptr<MenuItem> > m_items;
- ^
- src/gui/menu.cpp:500:18: note: Shadow variable
- menu_action(*m_items[m_active_item]);
- ^
- src/gui/notification.hpp:53:3: style: Class 'Notification' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Notification(std::string id, bool no_auto_hide = false, bool no_auto_disable = false);
- ^
- src/gui/menu_manager.cpp:315:28: error: Dereference of an invalid iterator: m_menu_stack.end() [derefInvalidIterator]
- return m_menu_stack.end()[-2].get();
- ^
- src/gui/menu_object_select.cpp:54:14: style: Variable 'obj' can be declared as reference to const [constVariableReference]
- for (auto& obj : m_objects)
- ^
- src/interface/control_scrollbar.hpp:34:16: style: The function 'update' overrides a function in a base class but is identical to the overridden function [uselessOverride]
- virtual void update(float dt_sec) override;
- ^
- src/editor/widget.hpp:33:16: note: Virtual function in base class
- virtual void update(float dt_sec) {}
- ^
- src/interface/control_scrollbar.hpp:34:16: note: Function in derived class
- virtual void update(float dt_sec) override;
- ^
- src/interface/control_textbox_float.hpp:40:16: style: Virtual function 'revert_value' is called from constructor 'ControlTextboxFloat()' at line 26. Dynamic binding is not used. [virtualCallInConstructor]
- virtual void revert_value() override;
- ^
- src/interface/control_textbox_float.cpp:26:3: note: Calling revert_value
- revert_value();
- ^
- src/interface/control_textbox_float.hpp:40:16: note: revert_value is a virtual function
- virtual void revert_value() override;
- ^
- src/interface/control_textbox_int.hpp:40:16: style: Virtual function 'revert_value' is called from constructor 'ControlTextboxInt()' at line 26. Dynamic binding is not used. [virtualCallInConstructor]
- virtual void revert_value() override;
- ^
- src/interface/control_textbox_int.cpp:26:3: note: Calling revert_value
- revert_value();
- ^
- src/interface/control_textbox_int.hpp:40:16: note: revert_value is a virtual function
- virtual void revert_value() override;
- ^
- src/supertux/profile.hpp:29:3: style: Class 'Profile' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Profile(int id);
- ^
- src/video/ttf_surface_manager.hpp:51:5: style: Struct 'CacheEntry' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- CacheEntry(const TTFSurfacePtr& s);
- ^
- src/object/ambient_light.hpp:27:3: style: Class 'AmbientLight' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- AmbientLight(const Color& color);
- ^
- src/object/ambient_light.hpp:28:3: style: Class 'AmbientLight' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- AmbientLight(const ReaderMapping& mapping);
- ^
- src/object/ambient_sound.hpp:41:22: warning: The class 'AmbientSound' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "ambient-sound"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/ambient_sound.hpp:41:22: note: Derived function 'AmbientSound::class_name'
- static std::string class_name() { return "ambient-sound"; }
- ^
- src/object/ambient_sound.hpp:35:3: style: Class 'AmbientSound' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- AmbientSound(const ReaderMapping& mapping);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < AmbientSound , scripting :: AmbientSound >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/bicycle_platform.hpp:58:3: style: Class 'BicyclePlatform' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- BicyclePlatform(const ReaderMapping& reader);
- ^
- src/object/bicycle_platform.hpp:72:16: style: The function 'after_editor_set' overrides a function in a base class but just delegates back to the base class. [uselessOverride]
- virtual void after_editor_set() override;
- ^
- src/supertux/game_object.hpp:125:16: note: Virtual function in base class
- virtual void after_editor_set();
- ^
- src/object/bicycle_platform.hpp:72:16: note: Function in derived class
- virtual void after_editor_set() override;
- ^
- src/object/bicycle_platform.cpp:62:8: style: Variable 'pl' can be declared as pointer to const [constVariablePointer]
- auto pl = dynamic_cast<Player*>(mo);
- ^
- src/object/growup.hpp:27:3: style: Class 'GrowUp' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GrowUp(const Vector& pos, Direction direction = Direction::RIGHT, const std::string& custom_sprite = "");
- ^
- src/object/block.cpp:100:8: style: Variable 'portable' can be declared as pointer to const [constVariablePointer]
- auto portable = dynamic_cast<Portable*> (&other);
- ^
- src/object/block.cpp:101:8: style: Variable 'moving_object' can be declared as pointer to const [constVariablePointer]
- auto moving_object = dynamic_cast<MovingObject*> (&other);
- ^
- src/object/block.cpp:102:8: style: Variable 'bomb' can be declared as pointer to const [constVariablePointer]
- auto bomb = dynamic_cast<Bomb*> (&other);
- ^
- src/object/block.cpp:170:17: style: Variable 'hitter_mo' can be declared as pointer to const [constVariablePointer]
- MovingObject* hitter_mo = dynamic_cast<MovingObject*>(hitter);
- ^
- src/object/bouncy_coin.hpp:28:3: style: Class 'BouncyCoin' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- BouncyCoin(const Vector& pos, bool emerge = false,
- ^
- src/object/bonus_block.cpp:162:3: error: Non-local variable 'm_object' will use pointer to local variable 'object'. [danglingLifetime]
- m_object = object.get();
- ^
- src/object/bonus_block.cpp:162:24: note: Raw pointer to smart pointer created here.
- m_object = object.get();
- ^
- src/object/bonus_block.cpp:160:52: note: Variable created here.
- BonusBlock::set_object(std::unique_ptr<GameObject> object)
- ^
- src/object/bonus_block.cpp:162:3: note: Non-local variable 'm_object' will use pointer to local variable 'object'.
- m_object = object.get();
- ^
- src/object/bonus_block.hpp:60:22: warning: The class 'BonusBlock' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "bonusblock"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/bonus_block.hpp:60:22: note: Derived function 'BonusBlock::class_name'
- static std::string class_name() { return "bonusblock"; }
- ^
- src/object/bonus_block.hpp:60:22: warning: The class 'BonusBlock' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "bonusblock"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/bonus_block.hpp:60:22: note: Derived function 'BonusBlock::class_name'
- static std::string class_name() { return "bonusblock"; }
- ^
- src/object/powerup.hpp:38:22: warning: The class 'PowerUp' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "powerup"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/powerup.hpp:38:22: note: Derived function 'PowerUp::class_name'
- static std::string class_name() { return "powerup"; }
- ^
- src/object/powerup.hpp:38:22: warning: The class 'PowerUp' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "powerup"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/powerup.hpp:38:22: note: Derived function 'PowerUp::class_name'
- static std::string class_name() { return "powerup"; }
- ^
- src/object/trampoline.hpp:35:22: warning: The class 'Trampoline' defines member function with name 'class_name' also defined in its parent class 'Rock'. [duplInheritedMember]
- static std::string class_name() { return "trampoline"; }
- ^
- src/object/rock.hpp:41:22: note: Parent function 'Rock::class_name'
- static std::string class_name() { return "rock"; }
- ^
- src/object/trampoline.hpp:35:22: note: Derived function 'Trampoline::class_name'
- static std::string class_name() { return "trampoline"; }
- ^
- src/object/trampoline.hpp:37:22: warning: The class 'Trampoline' defines member function with name 'display_name' also defined in its parent class 'Rock'. [duplInheritedMember]
- static std::string display_name() { return _("Trampoline"); }
- ^
- src/object/rock.hpp:43:22: note: Parent function 'Rock::display_name'
- static std::string display_name() { return _("Rock"); }
- ^
- src/object/trampoline.hpp:37:22: note: Derived function 'Trampoline::display_name'
- static std::string display_name() { return _("Trampoline"); }
- ^
- src/object/trampoline.hpp:35:22: warning: The class 'Trampoline' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "trampoline"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/trampoline.hpp:35:22: note: Derived function 'Trampoline::class_name'
- static std::string class_name() { return "trampoline"; }
- ^
- src/object/trampoline.hpp:35:22: warning: The class 'Trampoline' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "trampoline"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/trampoline.hpp:35:22: note: Derived function 'Trampoline::class_name'
- static std::string class_name() { return "trampoline"; }
- ^
- src/object/bonus_block.hpp:54:3: style: Class 'BonusBlock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- BonusBlock(const ReaderMapping& mapping);
- ^
- src/object/coin_rain.hpp:28:3: style: Class 'CoinRain' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- CoinRain(const Vector& pos, bool emerge=false, bool count_stats = true,
- ^
- src/object/flower.hpp:32:3: style: Class 'Flower' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Flower(BonusType type, const std::string& custom_sprite = "");
- ^
- src/object/oneup.hpp:27:3: style: Class 'OneUp' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- OneUp(const Vector& pos, Direction direction = Direction::RIGHT);
- ^
- src/object/powerup.hpp:26:3: style: Class 'PowerUp' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- PowerUp(const ReaderMapping& mapping);
- ^
- src/object/star.hpp:28:3: style: Class 'Star' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Star(const Vector& pos, Direction direction = Direction::RIGHT, const std::string& custom_sprite = "");
- ^
- src/object/trampoline.hpp:26:3: style: Class 'Trampoline' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Trampoline(const ReaderMapping& reader);
- ^
- src/object/bonus_block.cpp:304:8: style: Variable 'badguy' can be declared as pointer to const [constVariablePointer]
- auto badguy = dynamic_cast<BadGuy*> (&other);
- ^
- src/object/bonus_block.cpp:314:8: style: Variable 'crusher' can be declared as pointer to const [constVariablePointer]
- auto crusher = dynamic_cast<Crusher*> (&other);
- ^
- src/object/bonus_block.cpp:320:8: style: Variable 'portable' can be declared as pointer to const [constVariablePointer]
- auto portable = dynamic_cast<Portable*> (&other);
- ^
- src/object/bonus_block.cpp:322:10: style: Variable 'moving' can be declared as pointer to const [constVariablePointer]
- auto moving = dynamic_cast<MovingObject*> (&other);
- ^
- src/object/bonus_block.cpp:648:40: style: Parameter 'player' can be declared as pointer to const [constParameterPointer]
- BonusBlock::raise_growup_bonus(Player* player, const BonusType& bonus, const Direction& dir,
- ^
- src/object/bonus_block.cpp:666:39: style: Parameter 'player' can be declared as pointer to const [constParameterPointer]
- BonusBlock::drop_growup_bonus(Player* player, int type, const Direction& dir, bool& countdown,
- ^
- src/object/brick.cpp:135:5: error: Using reference to dangling temporary. [danglingTempReference]
- player_one.get_status().add_coins(1);
- ^
- src/object/brick.cpp:134:24: note: Assigned to reference.
- Player& player_one = *Sector::get().get_players()[0];
- ^
- src/object/brick.cpp:135:5: note: Using reference to dangling temporary.
- player_one.get_status().add_coins(1);
- ^
- src/object/brick.cpp:134:13: style: Variable 'player_one' can be declared as reference to const [constVariableReference]
- Player& player_one = *Sector::get().get_players()[0];
- ^
- src/object/brick.cpp:91:8: style: Variable 'badguy' can be declared as pointer to const [constVariablePointer]
- auto badguy = dynamic_cast<BadGuy*> (&other);
- ^
- src/object/brick.cpp:100:8: style: Variable 'portable' can be declared as pointer to const [constVariablePointer]
- auto portable = dynamic_cast<Portable*> (&other);
- ^
- src/object/brick.cpp:102:10: style: Variable 'moving' can be declared as pointer to const [constVariablePointer]
- auto moving = dynamic_cast<MovingObject*> (&other);
- ^
- src/object/brick.cpp:108:8: style: Variable 'explosion' can be declared as pointer to const [constVariablePointer]
- auto explosion = dynamic_cast<Explosion*> (&other);
- ^
- src/object/brick.cpp:113:8: style: Variable 'crusher' can be declared as pointer to const [constVariablePointer]
- auto crusher = dynamic_cast<Crusher*> (&other);
- ^
- src/object/brick.cpp:183:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = dynamic_cast<Player*>(&other);
- ^
- src/object/brick.cpp:186:8: style: Variable 'crusher' can be declared as pointer to const [constVariablePointer]
- auto crusher = dynamic_cast<Crusher*> (&other);
- ^
- src/object/brick.cpp:195:8: style: Variable 'badguy' can be declared as pointer to const [constVariablePointer]
- auto badguy = dynamic_cast<BadGuy*> (&other);
- ^
- src/object/brick.cpp:199:8: style: Variable 'portable' can be declared as pointer to const [constVariablePointer]
- auto portable = dynamic_cast<Portable*> (&other);
- ^
- src/object/brick.cpp:202:10: style: Variable 'moving' can be declared as pointer to const [constVariablePointer]
- auto moving = dynamic_cast<MovingObject*> (&other);
- ^
- src/object/bumper.hpp:36:22: warning: The class 'Bumper' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "bumper"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/bumper.hpp:36:22: note: Derived function 'Bumper::class_name'
- static std::string class_name() { return "bumper"; }
- ^
- src/object/bumper.hpp:36:22: warning: The class 'Bumper' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "bumper"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/bumper.hpp:36:22: note: Derived function 'Bumper::class_name'
- static std::string class_name() { return "bumper"; }
- ^
- src/object/bumper.hpp:29:3: style: Class 'Bumper' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Bumper(const ReaderMapping& reader);
- ^
- src/object/bumper.cpp:78:8: style: Variable 'bumper' can be declared as pointer to const [constVariablePointer]
- auto bumper = dynamic_cast<Bumper*> (&other);
- ^
- src/object/camera.cpp:483:7: style: The if condition is the same as the previous if condition [duplicateCondition]
- if (!player.is_dying())
- ^
- src/object/camera.cpp:455:7: note: First condition
- if (!player.is_dying())
- ^
- src/object/camera.cpp:483:7: note: Second condition
- if (!player.is_dying())
- ^
- src/object/camera.cpp:433:11: style: Variable 'player' can be declared as reference to const [constVariableReference]
- Player& player = *d_sector->get_players()[0];
- ^
- src/object/candle.hpp:35:22: warning: The class 'Candle' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "candle"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/candle.hpp:35:22: note: Derived function 'Candle::class_name'
- static std::string class_name() { return "candle"; }
- ^
- src/object/candle.hpp:35:22: warning: The class 'Candle' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "candle"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/candle.hpp:35:22: note: Derived function 'Candle::class_name'
- static std::string class_name() { return "candle"; }
- ^
- src/object/candle.hpp:31:3: style: Class 'Candle' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Candle(const ReaderMapping& mapping);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < Candle , scripting :: Candle >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/circleplatform.hpp:39:16: style: Virtual function 'initialize' is called from constructor 'CirclePlatform(const ReaderMapping&reader)' at line 42. Dynamic binding is not used. [virtualCallInConstructor]
- virtual void initialize();
- ^
- src/object/circleplatform.cpp:42:5: note: Calling initialize
- initialize();
- ^
- src/object/circleplatform.hpp:39:16: note: initialize is a virtual function
- virtual void initialize();
- ^
- src/object/circleplatform.hpp:33:22: warning: The class 'CirclePlatform' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "circleplatform"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/circleplatform.hpp:33:22: note: Derived function 'CirclePlatform::class_name'
- static std::string class_name() { return "circleplatform"; }
- ^
- src/object/circleplatform.hpp:33:22: warning: The class 'CirclePlatform' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "circleplatform"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/circleplatform.hpp:33:22: note: Derived function 'CirclePlatform::class_name'
- static std::string class_name() { return "circleplatform"; }
- ^
- src/object/circleplatform.hpp:25:3: style: Class 'CirclePlatform' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- CirclePlatform(const ReaderMapping& reader);
- ^
- src/object/cloud_particle_system.hpp:40:22: warning: The class 'CloudParticleSystem' defines member function with name 'class_name' also defined in its parent class 'ParticleSystem'. [duplInheritedMember]
- static std::string class_name() { return "particles-clouds"; }
- ^
- src/object/particlesystem.hpp:56:22: note: Parent function 'ParticleSystem::class_name'
- static std::string class_name() { return "particle-system"; }
- ^
- src/object/cloud_particle_system.hpp:40:22: note: Derived function 'CloudParticleSystem::class_name'
- static std::string class_name() { return "particles-clouds"; }
- ^
- src/object/cloud_particle_system.hpp:42:22: warning: The class 'CloudParticleSystem' defines member function with name 'display_name' also defined in its parent class 'ParticleSystem'. [duplInheritedMember]
- static std::string display_name() { return _("Cloud Particles"); }
- ^
- src/object/particlesystem.hpp:58:22: note: Parent function 'ParticleSystem::display_name'
- static std::string display_name() { return _("Particle system"); }
- ^
- src/object/cloud_particle_system.hpp:42:22: note: Derived function 'CloudParticleSystem::display_name'
- static std::string display_name() { return _("Cloud Particles"); }
- ^
- src/object/cloud_particle_system.hpp:32:3: style: Class 'CloudParticleSystem' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- CloudParticleSystem(const ReaderMapping& reader);
- ^
- src/video/surface_batch.hpp:31:3: style: Class 'SurfaceBatch' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SurfaceBatch(const SurfacePtr& surface, const Color& color = Color::WHITE);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < CloudParticleSystem , scripting :: Clouds >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/cloud_particle_system.cpp:142:10: style: Variable 'particle' can be declared as pointer to const [constVariablePointer]
- auto particle = dynamic_cast<CloudParticle*>(particles.at(i).get());
- ^
- src/object/coin.cpp:239:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = dynamic_cast<Player*>(&other);
- ^
- src/object/conveyor_belt.hpp:37:22: warning: The class 'ConveyorBelt' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "conveyor-belt"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/conveyor_belt.hpp:37:22: note: Derived function 'ConveyorBelt::class_name'
- static std::string class_name() { return "conveyor-belt"; }
- ^
- src/object/conveyor_belt.hpp:37:22: warning: The class 'ConveyorBelt' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "conveyor-belt"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/conveyor_belt.hpp:37:22: note: Derived function 'ConveyorBelt::class_name'
- static std::string class_name() { return "conveyor-belt"; }
- ^
- src/object/conveyor_belt.hpp:31:3: style: Class 'ConveyorBelt' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ConveyorBelt(const ReaderMapping& reader);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < ConveyorBelt , scripting :: ConveyorBelt >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/custom_particle_system_file.hpp:38:22: warning: The class 'CustomParticleSystemFile' defines member function with name 'class_name' also defined in its parent class 'CustomParticleSystem'. [duplInheritedMember]
- static std::string class_name() { return "particles-custom-file"; }
- ^
- src/object/custom_particle_system.hpp:44:22: note: Parent function 'CustomParticleSystem::class_name'
- static std::string class_name() { return "particles-custom"; }
- ^
- src/object/custom_particle_system_file.hpp:38:22: note: Derived function 'CustomParticleSystemFile::class_name'
- static std::string class_name() { return "particles-custom-file"; }
- ^
- src/object/custom_particle_system_file.hpp:40:22: warning: The class 'CustomParticleSystemFile' defines member function with name 'display_name' also defined in its parent class 'CustomParticleSystem'. [duplInheritedMember]
- static std::string display_name() { return _("Custom Particles from file"); }
- ^
- src/object/custom_particle_system.hpp:46:22: note: Parent function 'CustomParticleSystem::display_name'
- static std::string display_name() { return _("Custom Particles"); }
- ^
- src/object/custom_particle_system_file.hpp:40:22: note: Derived function 'CustomParticleSystemFile::display_name'
- static std::string display_name() { return _("Custom Particles from file"); }
- ^
- src/object/custom_particle_system_file.hpp:38:22: warning: The class 'CustomParticleSystemFile' defines member function with name 'class_name' also defined in its parent class 'ParticleSystem'. [duplInheritedMember]
- static std::string class_name() { return "particles-custom-file"; }
- ^
- src/object/particlesystem.hpp:56:22: note: Parent function 'ParticleSystem::class_name'
- static std::string class_name() { return "particle-system"; }
- ^
- src/object/custom_particle_system_file.hpp:38:22: note: Derived function 'CustomParticleSystemFile::class_name'
- static std::string class_name() { return "particles-custom-file"; }
- ^
- src/object/custom_particle_system_file.hpp:40:22: warning: The class 'CustomParticleSystemFile' defines member function with name 'display_name' also defined in its parent class 'ParticleSystem'. [duplInheritedMember]
- static std::string display_name() { return _("Custom Particles from file"); }
- ^
- src/object/particlesystem.hpp:58:22: note: Parent function 'ParticleSystem::display_name'
- static std::string display_name() { return _("Particle system"); }
- ^
- src/object/custom_particle_system_file.hpp:40:22: note: Derived function 'CustomParticleSystemFile::display_name'
- static std::string display_name() { return _("Custom Particles from file"); }
- ^
- src/object/custom_particle_system_file.hpp:35:3: style: Class 'CustomParticleSystemFile' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- CustomParticleSystemFile(const ReaderMapping& reader);
- ^
- src/object/custom_particle_system.cpp:816:10: style: Variable 'particle' can be declared as pointer to const [constVariablePointer]
- auto particle = dynamic_cast<CustomParticle*>(custom_particles.at(i).get());
- ^
- src/object/custom_particle_system.cpp:957:20: style: Variable 'solids' can be declared as pointer to const [constVariableReference]
- for (const auto& solids : Sector::get().get_solid_tilemaps()) {
- ^
- src/object/custom_particle_system.cpp:1043:20: style: Variable 'solids' can be declared as pointer to const [constVariableReference]
- for (const auto& solids : Sector::get().get_solid_tilemaps()) {
- ^
- src/object/decal.hpp:39:22: warning: The class 'Decal' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "decal"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/decal.hpp:39:22: note: Derived function 'Decal::class_name'
- static std::string class_name() { return "decal"; }
- ^
- src/object/decal.hpp:39:22: warning: The class 'Decal' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "decal"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/decal.hpp:39:22: note: Derived function 'Decal::class_name'
- static std::string class_name() { return "decal"; }
- ^
- src/object/decal.hpp:34:3: style: Class 'Decal' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Decal(const ReaderMapping& reader);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < Decal , scripting :: Decal >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/display_effect.hpp:28:3: style: Class 'DisplayEffect' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- DisplayEffect(const std::string& name = "");
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < DisplayEffect , scripting :: DisplayEffect >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/electrifier.cpp:26:14: style: Variable 'tile' can be declared as reference to const [constVariableReference]
- for (auto& tile : change_map) {
- ^
- src/object/electrifier.cpp:36:14: style: Variable 'tile' can be declared as reference to const [constVariableReference]
- for (auto& tile : change_map) {
- ^
- src/object/endsequence_fireworks.hpp:33:16: style: The function 'stopping' overrides a function in a base class but just delegates back to the base class. [uselessOverride]
- virtual void stopping() override; /**< called when EndSequence stops */
- ^
- src/object/endsequence.hpp:50:16: note: Virtual function in base class
- virtual void stopping(); /**< called when EndSequence stops */
- ^
- src/object/endsequence_fireworks.hpp:33:16: note: Function in derived class
- virtual void stopping() override; /**< called when EndSequence stops */
- ^
- src/object/endsequence_fireworks.cpp:52:20: style: Variable 'player' can be declared as pointer to const [constVariableReference]
- for (const auto& player : Sector::get().get_players())
- ^
- src/object/endsequence_walk.hpp:33:16: style: The function 'stopping' overrides a function in a base class but just delegates back to the base class. [uselessOverride]
- virtual void stopping() override; /**< called when EndSequence stops */
- ^
- src/object/endsequence.hpp:50:16: note: Virtual function in base class
- virtual void stopping(); /**< called when EndSequence stops */
- ^
- src/object/endsequence_walk.hpp:33:16: note: Function in derived class
- virtual void stopping() override; /**< called when EndSequence stops */
- ^
- src/object/endsequence_walk.cpp:52:14: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- for (auto* player : Sector::get().get_players())
- ^
- src/object/fallblock.hpp:39:22: warning: The class 'FallBlock' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "fallblock"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/fallblock.hpp:39:22: note: Derived function 'FallBlock::class_name'
- static std::string class_name() { return "fallblock"; }
- ^
- src/object/fallblock.hpp:39:22: warning: The class 'FallBlock' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "fallblock"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/fallblock.hpp:39:22: note: Derived function 'FallBlock::class_name'
- static std::string class_name() { return "fallblock"; }
- ^
- src/object/fallblock.hpp:30:3: style: Class 'FallBlock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- FallBlock(const ReaderMapping& reader);
- ^
- src/object/fallblock.cpp:99:8: style: Variable 'fallblock' can be declared as pointer to const [constVariablePointer]
- auto fallblock = dynamic_cast<FallBlock*> (&other);
- ^
- src/object/fallblock.cpp:106:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = dynamic_cast<Player*>(&other);
- ^
- src/object/fallblock.cpp:148:13: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- if (auto* player = Sector::get().get_nearest_player(m_col.m_bbox))
- ^
- src/object/weak_block.hpp:34:22: warning: The class 'WeakBlock' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "weak_block"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/weak_block.hpp:34:22: note: Derived function 'WeakBlock::class_name'
- static std::string class_name() { return "weak_block"; }
- ^
- src/object/weak_block.hpp:34:22: warning: The class 'WeakBlock' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "weak_block"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/weak_block.hpp:34:22: note: Derived function 'WeakBlock::class_name'
- static std::string class_name() { return "weak_block"; }
- ^
- src/object/weak_block.hpp:29:3: style: Class 'WeakBlock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- WeakBlock(const ReaderMapping& mapping);
- ^
- src/object/firefly.hpp:36:22: warning: The class 'Firefly' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "firefly"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/firefly.hpp:36:22: note: Derived function 'Firefly::class_name'
- static std::string class_name() { return "firefly"; }
- ^
- src/object/firefly.hpp:36:22: warning: The class 'Firefly' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "firefly"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/firefly.hpp:36:22: note: Derived function 'Firefly::class_name'
- static std::string class_name() { return "firefly"; }
- ^
- src/object/firefly.hpp:30:3: style: Class 'Firefly' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Firefly(const ReaderMapping& mapping);
- ^
- src/object/firefly.cpp:106:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = dynamic_cast<Player*> (&other);
- ^
- src/object/floating_image.hpp:27:3: style: Class 'FloatingImage' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- FloatingImage(const std::string& sprite);
- ^
- src/object/ghost_particle_system.hpp:35:22: warning: The class 'GhostParticleSystem' defines member function with name 'class_name' also defined in its parent class 'ParticleSystem'. [duplInheritedMember]
- static std::string class_name() { return "particles-ghosts"; }
- ^
- src/object/particlesystem.hpp:56:22: note: Parent function 'ParticleSystem::class_name'
- static std::string class_name() { return "particle-system"; }
- ^
- src/object/ghost_particle_system.hpp:35:22: note: Derived function 'GhostParticleSystem::class_name'
- static std::string class_name() { return "particles-ghosts"; }
- ^
- src/object/ghost_particle_system.hpp:37:22: warning: The class 'GhostParticleSystem' defines member function with name 'display_name' also defined in its parent class 'ParticleSystem'. [duplInheritedMember]
- static std::string display_name() { return _("Ghost Particles"); }
- ^
- src/object/particlesystem.hpp:58:22: note: Parent function 'ParticleSystem::display_name'
- static std::string display_name() { return _("Particle system"); }
- ^
- src/object/ghost_particle_system.hpp:37:22: note: Derived function 'GhostParticleSystem::display_name'
- static std::string display_name() { return _("Ghost Particles"); }
- ^
- src/object/ghost_particle_system.hpp:29:3: style: Class 'GhostParticleSystem' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GhostParticleSystem(const ReaderMapping& reader);
- ^
- src/object/platform.hpp:44:22: warning: The class 'Platform' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "platform"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/platform.hpp:44:22: note: Derived function 'Platform::class_name'
- static std::string class_name() { return "platform"; }
- ^
- src/object/platform.hpp:44:22: warning: The class 'Platform' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "platform"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/platform.hpp:44:22: note: Derived function 'Platform::class_name'
- static std::string class_name() { return "platform"; }
- ^
- src/object/hurting_platform.hpp:29:22: warning: The class 'HurtingPlatform' defines member function with name 'class_name' also defined in its parent class 'Platform'. [duplInheritedMember]
- static std::string class_name() { return "hurting_platform"; }
- ^
- src/object/platform.hpp:44:22: note: Parent function 'Platform::class_name'
- static std::string class_name() { return "platform"; }
- ^
- src/object/hurting_platform.hpp:29:22: note: Derived function 'HurtingPlatform::class_name'
- static std::string class_name() { return "hurting_platform"; }
- ^
- src/object/hurting_platform.hpp:31:22: warning: The class 'HurtingPlatform' defines member function with name 'display_name' also defined in its parent class 'Platform'. [duplInheritedMember]
- static std::string display_name() { return _("Hurting Platform"); }
- ^
- src/object/platform.hpp:46:22: note: Parent function 'Platform::display_name'
- static std::string display_name() { return _("Platform"); }
- ^
- src/object/hurting_platform.hpp:31:22: note: Derived function 'HurtingPlatform::display_name'
- static std::string display_name() { return _("Hurting Platform"); }
- ^
- src/object/hurting_platform.hpp:29:22: warning: The class 'HurtingPlatform' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "hurting_platform"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/hurting_platform.hpp:29:22: note: Derived function 'HurtingPlatform::class_name'
- static std::string class_name() { return "hurting_platform"; }
- ^
- src/object/hurting_platform.hpp:29:22: warning: The class 'HurtingPlatform' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "hurting_platform"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/hurting_platform.hpp:29:22: note: Derived function 'HurtingPlatform::class_name'
- static std::string class_name() { return "hurting_platform"; }
- ^
- src/object/platform.hpp:32:3: style: Class 'Platform' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Platform(const ReaderMapping& reader);
- ^
- src/object/hurting_platform.hpp:26:3: style: Class 'HurtingPlatform' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- HurtingPlatform(const ReaderMapping& reader);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < Platform , scripting :: Platform >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/infoblock.hpp:35:22: warning: The class 'InfoBlock' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "infoblock"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/infoblock.hpp:35:22: note: Derived function 'InfoBlock::class_name'
- static std::string class_name() { return "infoblock"; }
- ^
- src/object/infoblock.hpp:35:22: warning: The class 'InfoBlock' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "infoblock"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/infoblock.hpp:35:22: note: Derived function 'InfoBlock::class_name'
- static std::string class_name() { return "infoblock"; }
- ^
- src/object/infoblock.hpp:29:3: style: Class 'InfoBlock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- InfoBlock(const ReaderMapping& mapping);
- ^
- src/object/infoblock.cpp:112:13: style: Variable 'cam' can be declared as reference to const [constVariableReference]
- Camera& cam = Sector::get().get_singleton_by_type<Camera>();
- ^
- src/object/infoblock.cpp:152:15: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- if (auto* player = get_nearest_player()) {
- ^
- src/object/invisible_block.hpp:28:22: warning: The class 'InvisibleBlock' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "invisible_block"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/invisible_block.hpp:28:22: note: Derived function 'InvisibleBlock::class_name'
- static std::string class_name() { return "invisible_block"; }
- ^
- src/object/invisible_block.hpp:28:22: warning: The class 'InvisibleBlock' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "invisible_block"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/invisible_block.hpp:28:22: note: Derived function 'InvisibleBlock::class_name'
- static std::string class_name() { return "invisible_block"; }
- ^
- src/object/invisible_block.hpp:25:3: style: Class 'InvisibleBlock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- InvisibleBlock(const Vector& pos);
- ^
- src/object/invisible_block.hpp:26:3: style: Class 'InvisibleBlock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- InvisibleBlock(const ReaderMapping& mapping);
- ^
- src/object/invisible_block.cpp:68:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = dynamic_cast<Player*> (&other);
- ^
- src/object/invisible_wall.hpp:35:22: warning: The class 'InvisibleWall' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "invisible_wall"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/invisible_wall.hpp:35:22: note: Derived function 'InvisibleWall::class_name'
- static std::string class_name() { return "invisible_wall"; }
- ^
- src/object/invisible_wall.hpp:30:3: style: Class 'InvisibleWall' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- InvisibleWall(const ReaderMapping& mapping);
- ^
- src/object/ispy.hpp:33:22: warning: The class 'Ispy' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "ispy"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/ispy.hpp:33:22: note: Derived function 'Ispy::class_name'
- static std::string class_name() { return "ispy"; }
- ^
- src/object/ispy.hpp:33:22: warning: The class 'Ispy' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "ispy"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/ispy.hpp:33:22: note: Derived function 'Ispy::class_name'
- static std::string class_name() { return "ispy"; }
- ^
- src/object/ispy.hpp:28:3: style: Class 'Ispy' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Ispy(const ReaderMapping& mapping);
- ^
- src/object/key.hpp:36:22: warning: The class 'Key' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "key"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/key.hpp:36:22: note: Derived function 'Key::class_name'
- static std::string class_name() { return "key"; }
- ^
- src/object/key.hpp:36:22: warning: The class 'Key' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "key"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/key.hpp:36:22: note: Derived function 'Key::class_name'
- static std::string class_name() { return "key"; }
- ^
- src/trigger/door.hpp:29:22: warning: The class 'Door' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "door"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/trigger/door.hpp:29:22: note: Derived function 'Door::class_name'
- static std::string class_name() { return "door"; }
- ^
- src/trigger/door.hpp:29:22: warning: The class 'Door' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "door"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/trigger/door.hpp:29:22: note: Derived function 'Door::class_name'
- static std::string class_name() { return "door"; }
- ^
- src/object/key.hpp:30:3: style: Class 'Key' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Key(const ReaderMapping& reader);
- ^
- src/trigger/trigger_base.hpp:70:3: style: Class 'Trigger' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Trigger(const ReaderMapping& reader);
- ^
- src/trigger/door.hpp:27:3: style: Class 'Door' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Door(const ReaderMapping& reader);
- ^
- src/object/level_time.hpp:33:3: style: Class 'LevelTime' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- LevelTime(const ReaderMapping& reader);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < LevelTime , scripting :: LevelTime >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/light.hpp:28:3: style: Class 'Light' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Light(const Vector& center, const Color& color = Color(1.0, 1.0, 1.0, 1.0));
- ^
- src/object/lit_object.hpp:38:22: warning: The class 'LitObject' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "lit-object"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/lit_object.hpp:38:22: note: Derived function 'LitObject::class_name'
- static std::string class_name() { return "lit-object"; }
- ^
- src/object/lit_object.cpp:100:12: warning: The class 'LitObject' defines member function with name 'get_action' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- LitObject::get_action() const
- ^
- src/object/moving_sprite.hpp:70:22: note: Parent function 'MovingSprite::get_action'
- const std::string& get_action() const { return m_sprite->get_action(); }
- ^
- src/object/lit_object.cpp:100:12: note: Derived function 'LitObject::get_action'
- LitObject::get_action() const
- ^
- src/object/lit_object.hpp:38:22: warning: The class 'LitObject' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "lit-object"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/lit_object.hpp:38:22: note: Derived function 'LitObject::class_name'
- static std::string class_name() { return "lit-object"; }
- ^
- src/object/lit_object.hpp:31:3: style: Class 'LitObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- LitObject(const ReaderMapping& reader);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < LitObject , scripting :: LitObject >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/magicblock.hpp:40:22: warning: The class 'MagicBlock' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "magicblock"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/magicblock.hpp:40:22: note: Derived function 'MagicBlock::class_name'
- static std::string class_name() { return "magicblock"; }
- ^
- src/object/magicblock.hpp:40:22: warning: The class 'MagicBlock' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "magicblock"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/magicblock.hpp:40:22: note: Derived function 'MagicBlock::class_name'
- static std::string class_name() { return "magicblock"; }
- ^
- src/object/magicblock.hpp:34:3: style: Class 'MagicBlock' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- MagicBlock(const ReaderMapping& reader);
- ^
- src/object/music_object.hpp:33:3: style: Class 'MusicObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- MusicObject(const ReaderMapping& mapping);
- ^
- src/object/moving_sprite.hpp:103:16: style: Virtual function 'update_hitbox' is called from constructor 'MovingSprite(const glm::vec2&pos,const std::string&sprite_name,int layer=LAYER_OBJECTS,CollisionGroup collision_group=COLGROUP_MOVING)' at line 41. Dynamic binding is not used. [virtualCallInConstructor]
- virtual void update_hitbox();
- ^
- src/object/moving_sprite.cpp:41:3: note: Calling update_hitbox
- update_hitbox();
- ^
- src/object/moving_sprite.hpp:103:16: note: update_hitbox is a virtual function
- virtual void update_hitbox();
- ^
- src/object/moving_sprite.hpp:103:16: style: Virtual function 'update_hitbox' is called from constructor 'MovingSprite(const ReaderMapping&reader,const glm::vec2&pos,int layer=LAYER_OBJECTS,CollisionGroup collision_group=COLGROUP_MOVING)' at line 46. Dynamic binding is not used. [virtualCallInConstructor]
- virtual void update_hitbox();
- ^
- src/object/moving_sprite.cpp:46:3: note: Calling MovingSprite
- MovingSprite(reader, layer_, collision_group)
- ^
- src/object/moving_sprite.cpp:91:3: note: Calling update_hitbox
- update_hitbox();
- ^
- src/object/moving_sprite.hpp:103:16: note: update_hitbox is a virtual function
- virtual void update_hitbox();
- ^
- src/object/moving_sprite.hpp:103:16: style: Virtual function 'update_hitbox' is called from constructor 'MovingSprite(const ReaderMapping&reader,const std::string&sprite_name,int layer=LAYER_OBJECTS,CollisionGroup collision_group=COLGROUP_MOVING)' at line 66. Dynamic binding is not used. [virtualCallInConstructor]
- virtual void update_hitbox();
- ^
- src/object/moving_sprite.cpp:66:33: note: Calling change_sprite
- if (m_sprite_name.empty() || !change_sprite(m_sprite_name))
- ^
- src/object/moving_sprite.cpp:182:3: note: Calling update_hitbox
- update_hitbox();
- ^
- src/object/moving_sprite.hpp:103:16: note: update_hitbox is a virtual function
- virtual void update_hitbox();
- ^
- src/object/moving_sprite.hpp:103:16: style: Virtual function 'update_hitbox' is called from constructor 'MovingSprite(const ReaderMapping&reader,const std::string&sprite_name,int layer=LAYER_OBJECTS,CollisionGroup collision_group=COLGROUP_MOVING)' at line 68. Dynamic binding is not used. [virtualCallInConstructor]
- virtual void update_hitbox();
- ^
- src/object/moving_sprite.cpp:68:5: note: Calling change_sprite
- change_sprite(m_default_sprite_name);
- ^
- src/object/moving_sprite.cpp:182:3: note: Calling update_hitbox
- update_hitbox();
- ^
- src/object/moving_sprite.hpp:103:16: note: update_hitbox is a virtual function
- virtual void update_hitbox();
- ^
- src/object/moving_sprite.hpp:103:16: style: Virtual function 'update_hitbox' is called from constructor 'MovingSprite(const ReaderMapping&reader,int layer=LAYER_OBJECTS,CollisionGroup collision_group=COLGROUP_MOVING)' at line 91. Dynamic binding is not used. [virtualCallInConstructor]
- virtual void update_hitbox();
- ^
- src/object/moving_sprite.cpp:91:3: note: Calling update_hitbox
- update_hitbox();
- ^
- src/object/moving_sprite.hpp:103:16: note: update_hitbox is a virtual function
- virtual void update_hitbox();
- ^
- src/object/oneup.cpp:43:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = dynamic_cast<Player*> (&other);
- ^
- src/object/particles.cpp:108:11: style: Variable 'camera' can be declared as reference to const [constVariableReference]
- Camera& camera = Sector::get().get_camera();
- ^
- src/object/particlesystem_interactive.cpp:126:20: style: Variable 'solids' can be declared as pointer to const [constVariableReference]
- for (const auto& solids : Sector::get().get_solid_tilemaps()) {
- ^
- src/object/path_object.cpp:120:8: style: Variable 'path_gameobject' can be declared as pointer to const [constVariablePointer]
- auto path_gameobject = get_path_gameobject();
- ^
- src/object/path_walker.cpp:96:10: style: Variable 'current_node' can be declared as pointer to const [constVariablePointer]
- auto current_node = & (path->m_nodes[m_current_node_nr]);
- ^
- src/object/path_walker.cpp:151:9: style: Variable 'path' can be declared as pointer to const [constVariablePointer]
- Path* path = get_path();
- ^
- src/object/platform.cpp:111:17: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- if (auto* player = Sector::get().get_nearest_player(m_col.m_bbox)) {
- ^
- src/object/pneumatic_platform.hpp:56:3: style: Class 'PneumaticPlatform' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- PneumaticPlatform(const ReaderMapping& mapping);
- ^
- src/object/pneumatic_platform.hpp:69:16: style: The function 'after_editor_set' overrides a function in a base class but just delegates back to the base class. [uselessOverride]
- virtual void after_editor_set() override;
- ^
- src/supertux/game_object.hpp:125:16: note: Virtual function in base class
- virtual void after_editor_set();
- ^
- src/object/pneumatic_platform.hpp:69:16: note: Function in derived class
- virtual void after_editor_set() override;
- ^
- src/object/pneumatic_platform.cpp:57:8: style: Variable 'pl' can be declared as pointer to const [constVariablePointer]
- auto pl = dynamic_cast<Player*>(mo);
- ^
- src/object/powerup.cpp:259:15: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- if (auto* player = Sector::get().get_nearest_player(m_col.m_bbox))
- ^
- src/trigger/climbable.hpp:44:22: warning: The class 'Climbable' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "climbable"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/trigger/climbable.hpp:44:22: note: Derived function 'Climbable::class_name'
- static std::string class_name() { return "climbable"; }
- ^
- src/trigger/climbable.hpp:41:3: style: Class 'Climbable' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Climbable(const ReaderMapping& reader);
- ^
- src/object/player.cpp:1914:9: style: The statement 'if (m_does_buttjump) m_does_buttjump=false' is logically equivalent to 'm_does_buttjump=false'. [duplicateConditionalAssign]
- if (m_does_buttjump) m_does_buttjump = false;
- ^
- src/object/player.cpp:1914:42: note: Assignment 'm_does_buttjump=false'
- if (m_does_buttjump) m_does_buttjump = false;
- ^
- src/object/player.cpp:1914:9: note: Condition 'm_does_buttjump' is redundant
- if (m_does_buttjump) m_does_buttjump = false;
- ^
- src/object/player.cpp:1675:12: style: Condition '!m_sliding' is always true [knownConditionTrueFalse]
- else if (!m_sliding && (m_coyote_timer.started()) && !m_skidding_timer.started() &&
- ^
- src/object/player.cpp:1670:7: note: Assuming that condition 'm_sliding' is not redundant
- if (m_sliding)
- ^
- src/object/player.cpp:1675:12: note: Condition '!m_sliding' is always true
- else if (!m_sliding && (m_coyote_timer.started()) && !m_skidding_timer.started() &&
- ^
- src/object/player.cpp:328:10: style: Variable 'grabbed_game_object' can be declared as pointer to const [constVariablePointer]
- auto grabbed_game_object = dynamic_cast<GameObject*>(m_grabbed_object);
- ^
- src/object/player.cpp:333:13: style: Variable 'key' can be declared as pointer to const [constVariablePointer]
- for (Key* key : m_collected_keys)
- ^
- src/object/player.cpp:2317:8: style: Variable 'bullet' can be declared as pointer to const [constVariablePointer]
- auto bullet = dynamic_cast<Bullet*> (&other);
- ^
- src/object/player.cpp:2322:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = dynamic_cast<Player*> (&other);
- ^
- src/object/player.cpp:2331:8: style: Variable 'moving_object' can be declared as pointer to const [constVariablePointer]
- auto moving_object = static_cast<MovingObject*> (&other);
- ^
- src/object/player.cpp:2342:8: style: Variable 'badguy' can be declared as pointer to const [constVariablePointer]
- auto badguy = dynamic_cast<BadGuy*> (&other);
- ^
- src/object/player.cpp:2414:11: style: Variable 'session' can be declared as pointer to const [constVariablePointer]
- auto* session = GameSession::current();
- ^
- src/object/player.cpp:2782:12: style: Variable 'object' can be declared as pointer to const [constVariablePointer]
- if (auto object = dynamic_cast<GameObject*>(m_grabbed_object))
- ^
- src/object/player.cpp:2796:35: style: Parameter 'gameobject' can be declared as pointer to const [constParameterPointer]
- Player::ungrab_object(GameObject* gameobject)
- ^
- src/object/player.cpp:2819:11: style: Variable 'first' can be declared as pointer to const [constVariablePointer]
- Player* first = nullptr;
- ^
- src/object/player.cpp:2860:11: style: Variable 'last' can be declared as pointer to const [constVariablePointer]
- Player* last = nullptr;
- ^
- src/object/pulsing_light.hpp:28:3: style: Class 'PulsingLight' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- PulsingLight(const Vector& center, float cycle_len = 5.0, float min_alpha = 0.0, float max_alpha = 1.0, const Color& color = Color(1.0, 1.0, 1.0, 1.0));
- ^
- src/object/pushbutton.hpp:30:22: warning: The class 'PushButton' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "pushbutton"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/pushbutton.hpp:30:22: note: Derived function 'PushButton::class_name'
- static std::string class_name() { return "pushbutton"; }
- ^
- src/object/pushbutton.hpp:30:22: warning: The class 'PushButton' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "pushbutton"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/pushbutton.hpp:30:22: note: Derived function 'PushButton::class_name'
- static std::string class_name() { return "pushbutton"; }
- ^
- src/object/pushbutton.hpp:26:3: style: Class 'PushButton' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- PushButton(const ReaderMapping& reader);
- ^
- src/object/rain_particle_system.hpp:39:22: warning: The class 'RainParticleSystem' defines member function with name 'class_name' also defined in its parent class 'ParticleSystem'. [duplInheritedMember]
- static std::string class_name() { return "particles-rain"; }
- ^
- src/object/particlesystem.hpp:56:22: note: Parent function 'ParticleSystem::class_name'
- static std::string class_name() { return "particle-system"; }
- ^
- src/object/rain_particle_system.hpp:39:22: note: Derived function 'RainParticleSystem::class_name'
- static std::string class_name() { return "particles-rain"; }
- ^
- src/object/rain_particle_system.hpp:41:22: warning: The class 'RainParticleSystem' defines member function with name 'display_name' also defined in its parent class 'ParticleSystem'. [duplInheritedMember]
- static std::string display_name() { return _("Rain Particles"); }
- ^
- src/object/particlesystem.hpp:58:22: note: Parent function 'ParticleSystem::display_name'
- static std::string display_name() { return _("Particle system"); }
- ^
- src/object/rain_particle_system.hpp:41:22: note: Derived function 'RainParticleSystem::display_name'
- static std::string display_name() { return _("Rain Particles"); }
- ^
- src/object/rain_particle_system.hpp:31:3: style: Class 'RainParticleSystem' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- RainParticleSystem(const ReaderMapping& reader);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < RainParticleSystem , scripting :: Rain >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/pushbutton.cpp:85:8: style: Variable 'rock' can be declared as pointer to const [constVariablePointer]
- auto rock = dynamic_cast<Rock*>(&other);
- ^
- src/object/lit_object.hpp:50:22: warning: The class 'LitObject' defines member function with name 'get_action' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- const std::string& get_action() const;
- ^
- src/object/moving_sprite.hpp:70:22: note: Parent function 'MovingSprite::get_action'
- const std::string& get_action() const { return m_sprite->get_action(); }
- ^
- src/object/lit_object.hpp:50:22: note: Derived function 'LitObject::get_action'
- const std::string& get_action() const;
- ^
- src/object/rock.cpp:126:8: style: Variable 'heavy_coin' can be declared as pointer to const [constVariablePointer]
- auto heavy_coin = dynamic_cast<HeavyCoin*> (&other);
- ^
- src/object/rock.cpp:131:8: style: Variable 'explosion' can be declared as pointer to const [constVariablePointer]
- auto explosion = dynamic_cast<Explosion*> (&other);
- ^
- src/object/rock.cpp:138:8: style: Variable 'litobject' can be declared as pointer to const [constVariablePointer]
- auto litobject = dynamic_cast<LitObject*> (&other);
- ^
- src/object/rock.cpp:143:8: style: Variable 'pushbutton' can be declared as pointer to const [constVariablePointer]
- auto pushbutton = dynamic_cast<PushButton*> (&other);
- ^
- src/object/rock.cpp:152:8: style: Variable 'crusher' can be declared as pointer to const [constVariablePointer]
- auto crusher = dynamic_cast<Crusher*> (&other);
- ^
- src/object/rock.cpp:163:8: style: Variable 'rock' can be declared as pointer to const [constVariablePointer]
- auto rock = dynamic_cast<Rock*> (&other);
- ^
- src/object/rublight.hpp:32:22: warning: The class 'RubLight' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "rublight"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/rublight.hpp:32:22: note: Derived function 'RubLight::class_name'
- static std::string class_name() { return "rublight"; }
- ^
- src/object/rublight.hpp:32:22: warning: The class 'RubLight' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "rublight"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/rublight.hpp:32:22: note: Derived function 'RubLight::class_name'
- static std::string class_name() { return "rublight"; }
- ^
- src/object/rublight.hpp:27:3: style: Class 'RubLight' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- RubLight(const ReaderMapping& mapping);
- ^
- src/object/rublight.cpp:68:11: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- Player* player = dynamic_cast<Player*>(&other);
- ^
- src/object/rublight.cpp:85:18: style: Variable 'obj' can be declared as pointer to const [constVariablePointer]
- WalkingBadguy* obj = dynamic_cast<WalkingBadguy*>(&other);
- ^
- src/object/rusty_trampoline.hpp:38:22: warning: The class 'RustyTrampoline' defines member function with name 'class_name' also defined in its parent class 'Rock'. [duplInheritedMember]
- static std::string class_name() { return "rustytrampoline"; }
- ^
- src/object/rock.hpp:41:22: note: Parent function 'Rock::class_name'
- static std::string class_name() { return "rock"; }
- ^
- src/object/rusty_trampoline.hpp:38:22: note: Derived function 'RustyTrampoline::class_name'
- static std::string class_name() { return "rustytrampoline"; }
- ^
- src/object/rusty_trampoline.hpp:40:22: warning: The class 'RustyTrampoline' defines member function with name 'display_name' also defined in its parent class 'Rock'. [duplInheritedMember]
- static std::string display_name() { return _("Rusty Trampoline"); }
- ^
- src/object/rock.hpp:43:22: note: Parent function 'Rock::display_name'
- static std::string display_name() { return _("Rock"); }
- ^
- src/object/rusty_trampoline.hpp:40:22: note: Derived function 'RustyTrampoline::display_name'
- static std::string display_name() { return _("Rusty Trampoline"); }
- ^
- src/object/rusty_trampoline.hpp:38:22: warning: The class 'RustyTrampoline' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "rustytrampoline"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/rusty_trampoline.hpp:38:22: note: Derived function 'RustyTrampoline::class_name'
- static std::string class_name() { return "rustytrampoline"; }
- ^
- src/object/rusty_trampoline.hpp:38:22: warning: The class 'RustyTrampoline' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "rustytrampoline"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/rusty_trampoline.hpp:38:22: note: Derived function 'RustyTrampoline::class_name'
- static std::string class_name() { return "rustytrampoline"; }
- ^
- src/object/rusty_trampoline.hpp:29:3: style: Class 'RustyTrampoline' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- RustyTrampoline(const ReaderMapping& reader);
- ^
- src/object/scripted_object.hpp:38:22: warning: The class 'ScriptedObject' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "scriptedobject"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/scripted_object.hpp:38:22: note: Derived function 'ScriptedObject::class_name'
- static std::string class_name() { return "scriptedobject"; }
- ^
- src/object/scripted_object.hpp:38:22: warning: The class 'ScriptedObject' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "scriptedobject"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/scripted_object.hpp:38:22: note: Derived function 'ScriptedObject::class_name'
- static std::string class_name() { return "scriptedobject"; }
- ^
- src/object/scripted_object.hpp:30:3: style: Class 'ScriptedObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ScriptedObject(const ReaderMapping& mapping);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < ScriptedObject , scripting :: ScriptedObject >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/scripted_object.cpp:201:8: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- auto player = dynamic_cast<Player*> (&other);
- ^
- src/object/smoke_cloud.hpp:28:3: style: Class 'SmokeCloud' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SmokeCloud(const Vector& pos);
- ^
- src/object/shard.cpp:73:8: style: Variable 'shard' can be declared as pointer to const [constVariablePointer]
- auto shard = dynamic_cast<Shard*>(&other);
- ^
- src/object/snow_particle_system.cpp:34:21: warning: Member variable 'SnowParticleSystem::m_wind_speed' is not initialized in the constructor. [uninitMemberVar]
- SnowParticleSystem::SnowParticleSystem() :
- ^
- src/object/snow_particle_system.cpp:34:21: warning: Member variable 'SnowParticleSystem::m_epsilon' is not initialized in the constructor. [uninitMemberVar]
- SnowParticleSystem::SnowParticleSystem() :
- ^
- src/object/snow_particle_system.cpp:34:21: warning: Member variable 'SnowParticleSystem::m_state_length' is not initialized in the constructor. [uninitMemberVar]
- SnowParticleSystem::SnowParticleSystem() :
- ^
- src/object/snow_particle_system.hpp:35:22: warning: The class 'SnowParticleSystem' defines member function with name 'class_name' also defined in its parent class 'ParticleSystem'. [duplInheritedMember]
- static std::string class_name() { return "particles-snow"; }
- ^
- src/object/particlesystem.hpp:56:22: note: Parent function 'ParticleSystem::class_name'
- static std::string class_name() { return "particle-system"; }
- ^
- src/object/snow_particle_system.hpp:35:22: note: Derived function 'SnowParticleSystem::class_name'
- static std::string class_name() { return "particles-snow"; }
- ^
- src/object/snow_particle_system.hpp:37:22: warning: The class 'SnowParticleSystem' defines member function with name 'display_name' also defined in its parent class 'ParticleSystem'. [duplInheritedMember]
- static std::string display_name() { return _("Snow Particles"); }
- ^
- src/object/particlesystem.hpp:58:22: note: Parent function 'ParticleSystem::display_name'
- static std::string display_name() { return _("Particle system"); }
- ^
- src/object/snow_particle_system.hpp:37:22: note: Derived function 'SnowParticleSystem::display_name'
- static std::string display_name() { return _("Snow Particles"); }
- ^
- src/object/snow_particle_system.hpp:30:3: style: Class 'SnowParticleSystem' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SnowParticleSystem(const ReaderMapping& reader);
- ^
- src/object/sound_object.hpp:33:3: style: Class 'SoundObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SoundObject(const ReaderMapping& mapping);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < SoundObject , scripting :: SoundObject >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/spotlight.hpp:50:22: warning: The class 'Spotlight' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "spotlight"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/spotlight.hpp:50:22: note: Derived function 'Spotlight::class_name'
- static std::string class_name() { return "spotlight"; }
- ^
- src/object/spotlight.hpp:42:3: style: Class 'Spotlight' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Spotlight(const ReaderMapping& reader);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < Spotlight , scripting :: Spotlight >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/sprite_particle.cpp:93:11: style: Variable 'camera' can be declared as reference to const [constVariableReference]
- Camera& camera = Sector::get().get_camera();
- ^
- src/object/star.cpp:47:13: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- if (auto* player = Sector::get().get_nearest_player (m_col.m_bbox)) {
- ^
- src/object/text_object.hpp:39:3: style: Class 'TextObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TextObject(const std::string& name = "");
- ^
- src/object/text_array_object.hpp:37:3: style: Class 'TextArrayObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TextArrayObject(const std::string& name = "");
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < TextObject , scripting :: TextObject >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < TextArrayObject , scripting :: TextArrayObject >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/text_array_object.cpp:227:11: style: Variable 'text' can be declared as pointer to const [constVariablePointer]
- auto* text = get_current_text_item();
- ^
- src/object/textscroller.hpp:37:3: style: Class 'TextScroller' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TextScroller(const ReaderMapping& mapping);
- ^
- src/object/textscroller.hpp:38:3: style: Class 'TextScroller' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TextScroller(const ReaderObject& root);
- ^
- src/object/thunderstorm.hpp:36:3: style: Class 'Thunderstorm' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Thunderstorm(const ReaderMapping& reader);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < Thunderstorm , scripting :: Thunderstorm >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/torch.hpp:39:22: warning: The class 'Torch' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "torch"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/torch.hpp:39:22: note: Derived function 'Torch::class_name'
- static std::string class_name() { return "torch"; }
- ^
- src/object/torch.hpp:39:22: warning: The class 'Torch' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "torch"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/torch.hpp:39:22: note: Derived function 'Torch::class_name'
- static std::string class_name() { return "torch"; }
- ^
- src/object/torch.hpp:32:3: style: Class 'Torch' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Torch(const ReaderMapping& reader);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < Torch , scripting :: Torch >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/object/tilemap.cpp:737:16: style: Variable 'curr_set' can be declared as pointer to const [constVariablePointer]
- AutotileSet* curr_set;
- ^
- src/object/tilemap.cpp:787:16: style: Variable 'curr_set' can be declared as pointer to const [constVariablePointer]
- AutotileSet* curr_set = m_tileset->get_autotileset_from_tile(tile);
- ^
- src/object/tilemap.cpp:832:9: style: Variable 'ats' can be declared as pointer to const [constVariablePointer]
- auto* ats = m_tileset->get_autotileset_from_tile(tile);
- ^
- src/object/tilemap.cpp:850:16: style: Variable 'curr_set' can be declared as pointer to const [constVariablePointer]
- AutotileSet* curr_set = m_tileset->get_autotileset_from_tile(current_tile);
- ^
- src/object/trampoline.cpp:96:8: style: Variable 'heavy_coin' can be declared as pointer to const [constVariablePointer]
- auto heavy_coin = dynamic_cast<HeavyCoin*> (&other);
- ^
- src/object/unstable_tile.hpp:40:22: warning: The class 'UnstableTile' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "unstable_tile"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/object/unstable_tile.hpp:40:22: note: Derived function 'UnstableTile::class_name'
- static std::string class_name() { return "unstable_tile"; }
- ^
- src/object/unstable_tile.hpp:40:22: warning: The class 'UnstableTile' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "unstable_tile"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/unstable_tile.hpp:40:22: note: Derived function 'UnstableTile::class_name'
- static std::string class_name() { return "unstable_tile"; }
- ^
- src/object/unstable_tile.hpp:33:3: style: Class 'UnstableTile' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- UnstableTile(const ReaderMapping& mapping, int type = -1);
- ^
- src/object/unstable_tile.cpp:95:13: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- Player* player = dynamic_cast<Player*>(&other);
- ^
- src/object/wind.hpp:41:22: warning: The class 'Wind' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "wind"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/object/wind.hpp:41:22: note: Derived function 'Wind::class_name'
- static std::string class_name() { return "wind"; }
- ^
- src/object/wind.hpp:34:3: style: Class 'Wind' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Wind(const ReaderMapping& reader);
- ^
- src/squirrel/exposed_object.hpp:58:3: style: Class 'ExposedObject < Wind , scripting :: Wind >' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ExposedObject(S* parent) :
- ^
- src/physfs/ifile_streambuf.hpp:30:3: style: Class 'IFileStreambuf' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- IFileStreambuf(const std::string& filename);
- ^
- src/physfs/ofile_stream.hpp:29:3: style: Class 'OFileStream' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- OFileStream(const std::string& filename);
- ^
- src/physfs/ofile_streambuf.hpp:27:3: style: Class 'OFileStreambuf' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- OFileStreambuf(const std::string& filename);
- ^
- src/scripting/custom_particles.cpp:42:3: style: The scope of the variable 'object' can be reduced. [variableScope]
- SCRIPT_GUARD_VOID;
- ^
- src/scripting/floating_image.hpp:43:3: style: Class 'FloatingImage' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- FloatingImage(const std::string& spritefile);
- ^
- src/worldmap/tux.hpp:37:3: style: Class 'Tux' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Tux(WorldMap* worldmap);
- ^
- src/worldmap/worldmap_sector.hpp:43:3: style: Class 'WorldMapSector' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- WorldMapSector(WorldMap& parent);
- ^
- src/scripting/functions.cpp:362:3: error: Using reference to dangling temporary. [danglingTempReference]
- tux.get_physic().set_velocity_x(tux.get_physic().get_velocity_x()*3);
- ^
- src/scripting/functions.cpp:361:17: note: Assigned to reference.
- ::Player& tux = *(::Sector::get().get_players()[0]); // scripting::Player != ::Player
- ^
- src/scripting/functions.cpp:362:3: note: Using reference to dangling temporary.
- tux.get_physic().set_velocity_x(tux.get_physic().get_velocity_x()*3);
- ^
- src/scripting/functions.cpp:370:3: error: Using reference to dangling temporary. [danglingTempReference]
- tux.m_invincible_timer.start(10000);
- ^
- src/scripting/functions.cpp:369:17: note: Assigned to reference.
- ::Player& tux = *(::Sector::get().get_players()[0]);
- ^
- src/scripting/functions.cpp:370:3: note: Using reference to dangling temporary.
- tux.m_invincible_timer.start(10000);
- ^
- src/scripting/functions.cpp:378:3: error: Using reference to dangling temporary. [danglingTempReference]
- tux.set_ghost_mode(true);
- ^
- src/scripting/functions.cpp:377:17: note: Assigned to reference.
- ::Player& tux = *(::Sector::get().get_players()[0]);
- ^
- src/scripting/functions.cpp:378:3: note: Using reference to dangling temporary.
- tux.set_ghost_mode(true);
- ^
- src/scripting/functions.cpp:386:3: error: Using reference to dangling temporary. [danglingTempReference]
- tux.m_invincible_timer.stop();
- ^
- src/scripting/functions.cpp:385:17: note: Assigned to reference.
- ::Player& tux = *(::Sector::get().get_players()[0]);
- ^
- src/scripting/functions.cpp:386:3: note: Using reference to dangling temporary.
- tux.m_invincible_timer.stop();
- ^
- src/scripting/functions.cpp:387:3: error: Using reference to dangling temporary. [danglingTempReference]
- tux.set_ghost_mode(false);
- ^
- src/scripting/functions.cpp:385:17: note: Assigned to reference.
- ::Player& tux = *(::Sector::get().get_players()[0]);
- ^
- src/scripting/functions.cpp:387:3: note: Using reference to dangling temporary.
- tux.set_ghost_mode(false);
- ^
- src/scripting/functions.cpp:406:52: error: Using reference to dangling temporary. [danglingTempReference]
- log_info << "You are at x " << (static_cast<int>(tux.get_pos().x)) << ", y " << (static_cast<int>(tux.get_pos().y)) << std::endl;
- ^
- src/scripting/functions.cpp:405:17: note: Assigned to reference.
- ::Player& tux = *(::Sector::get().get_players()[0]);
- ^
- src/scripting/functions.cpp:406:52: note: Using reference to dangling temporary.
- log_info << "You are at x " << (static_cast<int>(tux.get_pos().x)) << ", y " << (static_cast<int>(tux.get_pos().y)) << std::endl;
- ^
- src/scripting/functions.cpp:414:3: error: Using reference to dangling temporary. [danglingTempReference]
- tux.move(Vector(
- ^
- src/scripting/functions.cpp:413:17: note: Assigned to reference.
- ::Player& tux = *(::Sector::get().get_players()[0]);
- ^
- src/scripting/functions.cpp:414:3: note: Using reference to dangling temporary.
- tux.move(Vector(
- ^
- src/scripting/functions.cpp:417:12: error: Using reference to dangling temporary. [danglingTempReference]
- Vector(tux.get_pos().x, tux.get_pos().y));
- ^
- src/scripting/functions.cpp:413:17: note: Assigned to reference.
- ::Player& tux = *(::Sector::get().get_players()[0]);
- ^
- src/scripting/functions.cpp:417:12: note: Using reference to dangling temporary.
- Vector(tux.get_pos().x, tux.get_pos().y));
- ^
- src/scripting/functions.cpp:425:3: error: Using reference to dangling temporary. [danglingTempReference]
- tux.move(Vector(
- ^
- src/scripting/functions.cpp:424:17: note: Assigned to reference.
- ::Player& tux = *(::Sector::get().get_players()[0]);
- ^
- src/scripting/functions.cpp:425:3: note: Using reference to dangling temporary.
- tux.move(Vector(
- ^
- src/scripting/functions.cpp:426:15: error: Using reference to dangling temporary. [danglingTempReference]
- tux.get_pos().x + (offset_x*32), tux.get_pos().y - (offset_y*32)));
- ^
- src/scripting/functions.cpp:424:17: note: Assigned to reference.
- ::Player& tux = *(::Sector::get().get_players()[0]);
- ^
- src/scripting/functions.cpp:426:15: note: Using reference to dangling temporary.
- tux.get_pos().x + (offset_x*32), tux.get_pos().y - (offset_y*32)));
- ^
- src/scripting/functions.cpp:428:12: error: Using reference to dangling temporary. [danglingTempReference]
- Vector(tux.get_pos().x, tux.get_pos().y));
- ^
- src/scripting/functions.cpp:424:17: note: Assigned to reference.
- ::Player& tux = *(::Sector::get().get_players()[0]);
- ^
- src/scripting/functions.cpp:428:12: note: Using reference to dangling temporary.
- Vector(tux.get_pos().x, tux.get_pos().y));
- ^
- src/supertux/textscroller_screen.hpp:36:3: style: Class 'TextScrollerScreen' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TextScrollerScreen(const std::string& file);
- ^
- src/supertux/title_screen.hpp:41:3: style: Class 'TitleScreen' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TitleScreen(Savegame& savegame, bool christmas = false);
- ^
- src/scripting/functions.cpp:405:13: style: The scope of the variable 'tux' can be reduced. [variableScope]
- ::Player& tux = *(::Sector::get().get_players()[0]);
- ^
- src/scripting/functions.cpp:405:13: style: Variable 'tux' can be declared as reference to const [constVariableReference]
- ::Player& tux = *(::Sector::get().get_players()[0]);
- ^
- src/scripting/functions.cpp:85:8: style: Variable 'session' can be declared as pointer to const [constVariablePointer]
- auto session = GameSession::current();
- ^
- src/scripting/functions.cpp:107:8: style: Variable 'session' can be declared as pointer to const [constVariablePointer]
- auto session = GameSession::current();
- ^
- src/scripting/functions.cpp:129:8: style: Variable 'session' can be declared as pointer to const [constVariablePointer]
- auto session = GameSession::current();
- ^
- src/scripting/functions.cpp:141:8: style: Variable 'session' can be declared as pointer to const [constVariablePointer]
- auto session = GameSession::current();
- ^
- src/scripting/game_object.hpp:91:3: style: Class 'GameObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GameObject(const ::GameObject& object) :
- ^
- src/scripting/game_object_manager.hpp:39:3: style: Class 'GameObjectManager' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GameObjectManager(::GameObjectManager* parent);
- ^
- src/scripting/sector.hpp:40:3: style: Class 'Sector' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Sector(::Sector* parent);
- ^
- src/sdk/discord.cpp:17:0: information: Include file: "config.h" not found. [missingInclude]
- #include "config.h"
- ^
- src/sdk/discord.hpp:20:0: information: Include file: "config.h" not found. [missingInclude]
- #include "config.h"
- ^
- src/scripting/worldmap_sector.hpp:50:3: style: Class 'WorldMapSector' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- WorldMapSector(::worldmap::WorldMapSector* parent);
- ^
- src/sdk/integration.cpp:17:0: information: Include file: "config.h" not found. [missingInclude]
- #include "config.h"
- ^
- src/squirrel/squirrel_environment.cpp:115:5: performance: Passing the result of c_str() to a function that takes std::string as argument no. 3 is slow and redundant. [stlcstrParam]
- unexpose_object(m_vm.get_vm(), -1, name.c_str());
- ^
- src/scripting/wrapper.cpp:14127:1: information: Limiting ValueFlow analysis in function 'register_supertux_wrapper' since it is too complex. Please specify --check-level=exhaustive to perform full analysis. [checkLevelNormal]
- {
- ^
- src/squirrel/squirrel_virtual_machine.cpp:38:0: information: Include file: "../../external/squirrel/sqdbg/sqrdbg.h" not found. [missingInclude]
- # include "../../external/squirrel/sqdbg/sqrdbg.h"
- ^
- src/supertux/autotile.cpp:50:14: style: Variable 'l_mask' can be declared as reference to const [constVariableReference]
- for (auto& l_mask : m_masks)
- ^
- src/supertux/autotile.cpp:194:14: style: Variable 'autotile' can be declared as pointer to const [constVariablePointer]
- for (auto* autotile : m_autotiles)
- ^
- src/supertux/autotile.cpp:208:14: style: Variable 'tile' can be declared as pointer to const [constVariableReference]
- for (auto& tile : m_autotiles)
- ^
- src/supertux/autotile.cpp:236:14: style: Variable 'tile' can be declared as pointer to const [constVariablePointer]
- for (auto* tile : m_autotiles)
- ^
- src/supertux/autotile.cpp:264:14: style: Variable 'autotile' can be declared as pointer to const [constVariablePointer]
- for (auto* autotile : m_autotiles)
- ^
- src/supertux/autotile.cpp:285:16: style: Variable 'autotile' can be declared as pointer to const [constVariablePointer]
- for (auto* autotile : m_autotiles)
- ^
- src/supertux/command_line_arguments.cpp:27:0: information: Include file: "version.h" not found. [missingInclude]
- #include "version.h"
- ^
- src/trigger/secretarea_trigger.hpp:34:22: warning: The class 'SecretAreaTrigger' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "secretarea"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/trigger/secretarea_trigger.hpp:34:22: note: Derived function 'SecretAreaTrigger::class_name'
- static std::string class_name() { return "secretarea"; }
- ^
- src/supertux/player_status_hud.hpp:36:3: style: Class 'PlayerStatusHUD' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- PlayerStatusHUD(PlayerStatus& player_status);
- ^
- src/trigger/secretarea_trigger.hpp:32:3: style: Class 'SecretAreaTrigger' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SecretAreaTrigger(const ReaderMapping& reader);
- ^
- src/scripting/wrapper.cpp:70:28: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::AmbientSound* _this = reinterpret_cast<scripting::AmbientSound*> (data);
- ^
- src/scripting/wrapper.cpp:96:28: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::AmbientSound* _this = reinterpret_cast<scripting::AmbientSound*> (data);
- ^
- src/scripting/wrapper.cpp:1185:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Candle* _this = reinterpret_cast<scripting::Candle*> (data);
- ^
- src/scripting/wrapper.cpp:1278:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Clouds* _this = reinterpret_cast<scripting::Clouds*> (data);
- ^
- src/scripting/wrapper.cpp:1588:31: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::CustomParticles* _this = reinterpret_cast<scripting::CustomParticles*> (data);
- ^
- src/scripting/wrapper.cpp:5269:29: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::DisplayEffect* _this = reinterpret_cast<scripting::DisplayEffect*> (data);
- ^
- src/scripting/wrapper.cpp:5420:29: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::FloatingImage* _this = reinterpret_cast<scripting::FloatingImage*> (data);
- ^
- src/scripting/wrapper.cpp:5481:29: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::FloatingImage* _this = reinterpret_cast<scripting::FloatingImage*> (data);
- ^
- src/scripting/wrapper.cpp:5507:29: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::FloatingImage* _this = reinterpret_cast<scripting::FloatingImage*> (data);
- ^
- src/scripting/wrapper.cpp:5563:29: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::FloatingImage* _this = reinterpret_cast<scripting::FloatingImage*> (data);
- ^
- src/scripting/wrapper.cpp:5619:29: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::FloatingImage* _this = reinterpret_cast<scripting::FloatingImage*> (data);
- ^
- src/scripting/wrapper.cpp:5675:29: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::FloatingImage* _this = reinterpret_cast<scripting::FloatingImage*> (data);
- ^
- src/scripting/wrapper.cpp:5854:33: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::GameObjectManager* _this = reinterpret_cast<scripting::GameObjectManager*> (data);
- ^
- src/scripting/wrapper.cpp:5880:33: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::GameObjectManager* _this = reinterpret_cast<scripting::GameObjectManager*> (data);
- ^
- src/scripting/wrapper.cpp:5906:33: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::GameObjectManager* _this = reinterpret_cast<scripting::GameObjectManager*> (data);
- ^
- src/scripting/wrapper.cpp:6054:24: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Gradient* _this = reinterpret_cast<scripting::Gradient*> (data);
- ^
- src/scripting/wrapper.cpp:6448:25: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::LevelTime* _this = reinterpret_cast<scripting::LevelTime*> (data);
- ^
- src/scripting/wrapper.cpp:6511:25: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::LitObject* _this = reinterpret_cast<scripting::LitObject*> (data);
- ^
- src/scripting/wrapper.cpp:6568:25: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::LitObject* _this = reinterpret_cast<scripting::LitObject*> (data);
- ^
- src/scripting/wrapper.cpp:6662:30: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::ParticleSystem* _this = reinterpret_cast<scripting::ParticleSystem*> (data);
- ^
- src/scripting/wrapper.cpp:6805:24: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Platform* _this = reinterpret_cast<scripting::Platform*> (data);
- ^
- src/scripting/wrapper.cpp:6936:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Player* _this = reinterpret_cast<scripting::Player*> (data);
- ^
- src/scripting/wrapper.cpp:6993:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Player* _this = reinterpret_cast<scripting::Player*> (data);
- ^
- src/scripting/wrapper.cpp:7184:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Player* _this = reinterpret_cast<scripting::Player*> (data);
- ^
- src/scripting/wrapper.cpp:7270:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Player* _this = reinterpret_cast<scripting::Player*> (data);
- ^
- src/scripting/wrapper.cpp:7546:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Player* _this = reinterpret_cast<scripting::Player*> (data);
- ^
- src/scripting/wrapper.cpp:7577:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Player* _this = reinterpret_cast<scripting::Player*> (data);
- ^
- src/scripting/wrapper.cpp:7603:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Player* _this = reinterpret_cast<scripting::Player*> (data);
- ^
- src/scripting/wrapper.cpp:7664:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Player* _this = reinterpret_cast<scripting::Player*> (data);
- ^
- src/scripting/wrapper.cpp:7690:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Player* _this = reinterpret_cast<scripting::Player*> (data);
- ^
- src/scripting/wrapper.cpp:7751:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Player* _this = reinterpret_cast<scripting::Player*> (data);
- ^
- src/scripting/wrapper.cpp:7908:20: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Rain* _this = reinterpret_cast<scripting::Rain*> (data);
- ^
- src/scripting/wrapper.cpp:8088:30: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::ScriptedObject* _this = reinterpret_cast<scripting::ScriptedObject*> (data);
- ^
- src/scripting/wrapper.cpp:8115:30: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::ScriptedObject* _this = reinterpret_cast<scripting::ScriptedObject*> (data);
- ^
- src/scripting/wrapper.cpp:8212:30: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::ScriptedObject* _this = reinterpret_cast<scripting::ScriptedObject*> (data);
- ^
- src/scripting/wrapper.cpp:8238:30: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::ScriptedObject* _this = reinterpret_cast<scripting::ScriptedObject*> (data);
- ^
- src/scripting/wrapper.cpp:8299:30: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::ScriptedObject* _this = reinterpret_cast<scripting::ScriptedObject*> (data);
- ^
- src/scripting/wrapper.cpp:8325:30: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::ScriptedObject* _this = reinterpret_cast<scripting::ScriptedObject*> (data);
- ^
- src/scripting/wrapper.cpp:8381:30: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::ScriptedObject* _this = reinterpret_cast<scripting::ScriptedObject*> (data);
- ^
- src/scripting/wrapper.cpp:8437:30: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::ScriptedObject* _this = reinterpret_cast<scripting::ScriptedObject*> (data);
- ^
- src/scripting/wrapper.cpp:8493:30: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::ScriptedObject* _this = reinterpret_cast<scripting::ScriptedObject*> (data);
- ^
- src/scripting/wrapper.cpp:8556:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Sector* _this = reinterpret_cast<scripting::Sector*> (data);
- ^
- src/scripting/wrapper.cpp:8607:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Sector* _this = reinterpret_cast<scripting::Sector*> (data);
- ^
- src/scripting/wrapper.cpp:8658:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Sector* _this = reinterpret_cast<scripting::Sector*> (data);
- ^
- src/scripting/wrapper.cpp:8704:22: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Sector* _this = reinterpret_cast<scripting::Sector*> (data);
- ^
- src/scripting/wrapper.cpp:8837:27: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::SoundObject* _this = reinterpret_cast<scripting::SoundObject*> (data);
- ^
- src/scripting/wrapper.cpp:9621:26: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::TextObject* _this = reinterpret_cast<scripting::TextObject*> (data);
- ^
- src/scripting/wrapper.cpp:9647:26: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::TextObject* _this = reinterpret_cast<scripting::TextObject*> (data);
- ^
- src/scripting/wrapper.cpp:9703:26: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::TextObject* _this = reinterpret_cast<scripting::TextObject*> (data);
- ^
- src/scripting/wrapper.cpp:9764:26: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::TextObject* _this = reinterpret_cast<scripting::TextObject*> (data);
- ^
- src/scripting/wrapper.cpp:10610:31: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::TextArrayObject* _this = reinterpret_cast<scripting::TextArrayObject*> (data);
- ^
- src/scripting/wrapper.cpp:10636:31: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::TextArrayObject* _this = reinterpret_cast<scripting::TextArrayObject*> (data);
- ^
- src/scripting/wrapper.cpp:10692:31: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::TextArrayObject* _this = reinterpret_cast<scripting::TextArrayObject*> (data);
- ^
- src/scripting/wrapper.cpp:10753:31: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::TextArrayObject* _this = reinterpret_cast<scripting::TextArrayObject*> (data);
- ^
- src/scripting/wrapper.cpp:11248:23: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::TileMap* _this = reinterpret_cast<scripting::TileMap*> (data);
- ^
- src/scripting/wrapper.cpp:11284:23: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::TileMap* _this = reinterpret_cast<scripting::TileMap*> (data);
- ^
- src/scripting/wrapper.cpp:11515:23: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::TileMap* _this = reinterpret_cast<scripting::TileMap*> (data);
- ^
- src/scripting/wrapper.cpp:11578:21: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::Torch* _this = reinterpret_cast<scripting::Torch*> (data);
- ^
- src/scripting/wrapper.cpp:11815:30: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::WorldMapSector* _this = reinterpret_cast<scripting::WorldMapSector*> (data);
- ^
- src/scripting/wrapper.cpp:11841:30: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::WorldMapSector* _this = reinterpret_cast<scripting::WorldMapSector*> (data);
- ^
- src/scripting/wrapper.cpp:11962:30: style: Variable '_this' can be declared as pointer to const [constVariablePointer]
- scripting::WorldMapSector* _this = reinterpret_cast<scripting::WorldMapSector*> (data);
- ^
- src/supertux/console.cpp:89:43: style: Parameter 'buffer' can be declared as reference to const [constParameterReference]
- ConsoleBuffer::flush(ConsoleStreamBuffer& buffer)
- ^
- src/worldmap/worldmap_screen.hpp:34:3: style: Class 'WorldMapScreen' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- WorldMapScreen(std::unique_ptr<WorldMap> worldmap);
- ^
- src/supertux/game_object_manager.cpp:155:10: error: Reference to local variable returned. [returnReference]
- return tmp;
- ^
- src/supertux/game_object_manager.cpp:153:19: note: Assigned to reference.
- GameObject& tmp = *object;
- ^
- src/supertux/game_object_manager.cpp:155:10: note: Reference to local variable returned.
- return tmp;
- ^
- src/supertux/game_object_manager.cpp:435:51: style: Parameter 'object' can be declared as reference to const [constParameterReference]
- GameObjectManager::save_object_change(GameObject& object, const std::string& data)
- ^
- src/supertux/game_object_manager.cpp:74:17: style: Variable 'object' can be declared as pointer to const [constVariablePointer]
- GameObject* object = get_object_by_name<GameObject>(request.name);
- ^
- src/supertux/game_object_manager.cpp:100:11: style: Variable 'object' can be declared as pointer to const [constVariablePointer]
- auto* object = get_object_by_name<GameObject>(request.name);
- ^
- src/supertux/game_object_manager.cpp:217:12: style: Variable 'tm' can be declared as pointer to const [constVariablePointer]
- auto tm = dynamic_cast<TileMap*>(object.get());
- ^
- src/supertux/game_object_manager.cpp:508:14: style: Variable 'tilemap' can be declared as pointer to const [constVariableReference]
- for (auto& tilemap : get_solid_tilemaps())
- ^
- src/supertux/game_object_manager.cpp:518:20: style: Variable 'tilemap' can be declared as pointer to const [constVariableReference]
- for (const auto& tilemap : get_solid_tilemaps())
- ^
- src/supertux/game_object_manager.cpp:528:20: style: Variable 'tilemap' can be declared as pointer to const [constVariableReference]
- for (const auto& tilemap : get_all_tilemaps()) // Determine from all tilemaps
- ^
- src/supertux/game_object_manager.cpp:538:20: style: Variable 'tilemap' can be declared as pointer to const [constVariableReference]
- for (const auto& tilemap : get_all_tilemaps()) // Determine from all tilemaps
- ^
- src/supertux/game_object_manager.cpp:548:20: style: Variable 'tilemap' can be declared as pointer to const [constVariableReference]
- for (const auto& tilemap : get_solid_tilemaps())
- ^
- src/supertux/game_object_manager.cpp:560:20: style: Variable 'tilemap' can be declared as pointer to const [constVariableReference]
- for (const auto& tilemap : get_solid_tilemaps())
- ^
- src/badguy/yeti.hpp:43:8: warning: The class 'Yeti' defines member function with name 'kill_squished' also defined in its parent class 'BadGuy'. [duplInheritedMember]
- void kill_squished(GameObject& object);
- ^
- src/badguy/badguy.hpp:193:8: note: Parent function 'BadGuy::kill_squished'
- void kill_squished(GameObject& object);
- ^
- src/badguy/yeti.hpp:43:8: note: Derived function 'Yeti::kill_squished'
- void kill_squished(GameObject& object);
- ^
- src/trigger/scripttrigger.hpp:27:22: warning: The class 'ScriptTrigger' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "scripttrigger"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/trigger/scripttrigger.hpp:27:22: note: Derived function 'ScriptTrigger::class_name'
- static std::string class_name() { return "scripttrigger"; }
- ^
- src/trigger/sequence_trigger.hpp:29:22: warning: The class 'SequenceTrigger' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "sequencetrigger"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/trigger/sequence_trigger.hpp:29:22: note: Derived function 'SequenceTrigger::class_name'
- static std::string class_name() { return "sequencetrigger"; }
- ^
- src/trigger/switch.hpp:28:22: warning: The class 'Switch' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "switch"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/trigger/switch.hpp:28:22: note: Derived function 'Switch::class_name'
- static std::string class_name() { return "switch"; }
- ^
- src/trigger/switch.hpp:28:22: warning: The class 'Switch' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "switch"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/trigger/switch.hpp:28:22: note: Derived function 'Switch::class_name'
- static std::string class_name() { return "switch"; }
- ^
- src/trigger/text_area.hpp:45:22: warning: The class 'TextArea' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "text-area"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/trigger/text_area.hpp:45:22: note: Derived function 'TextArea::class_name'
- static std::string class_name() { return "text-area"; }
- ^
- src/worldmap/level_tile.hpp:34:22: warning: The class 'LevelTile' defines member function with name 'class_name' also defined in its parent class 'WorldMapObject'. [duplInheritedMember]
- static std::string class_name() { return "level"; }
- ^
- src/worldmap/worldmap_object.hpp:40:22: note: Parent function 'WorldMapObject::class_name'
- static std::string class_name() { return "worldmap-object"; }
- ^
- src/worldmap/level_tile.hpp:34:22: note: Derived function 'LevelTile::class_name'
- static std::string class_name() { return "level"; }
- ^
- src/worldmap/level_tile.hpp:34:22: warning: The class 'LevelTile' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "level"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/worldmap/level_tile.hpp:34:22: note: Derived function 'LevelTile::class_name'
- static std::string class_name() { return "level"; }
- ^
- src/worldmap/level_tile.hpp:34:22: warning: The class 'LevelTile' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "level"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/worldmap/level_tile.hpp:34:22: note: Derived function 'LevelTile::class_name'
- static std::string class_name() { return "level"; }
- ^
- src/worldmap/spawn_point.hpp:56:22: warning: The class 'SpawnPointObject' defines member function with name 'class_name' also defined in its parent class 'WorldMapObject'. [duplInheritedMember]
- static std::string class_name() { return "worldmap-spawnpoint"; }
- ^
- src/worldmap/worldmap_object.hpp:40:22: note: Parent function 'WorldMapObject::class_name'
- static std::string class_name() { return "worldmap-object"; }
- ^
- src/worldmap/spawn_point.hpp:56:22: note: Derived function 'SpawnPointObject::class_name'
- static std::string class_name() { return "worldmap-spawnpoint"; }
- ^
- src/worldmap/spawn_point.hpp:56:22: warning: The class 'SpawnPointObject' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "worldmap-spawnpoint"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/worldmap/spawn_point.hpp:56:22: note: Derived function 'SpawnPointObject::class_name'
- static std::string class_name() { return "worldmap-spawnpoint"; }
- ^
- src/worldmap/spawn_point.hpp:56:22: warning: The class 'SpawnPointObject' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "worldmap-spawnpoint"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/worldmap/spawn_point.hpp:56:22: note: Derived function 'SpawnPointObject::class_name'
- static std::string class_name() { return "worldmap-spawnpoint"; }
- ^
- src/worldmap/special_tile.hpp:34:22: warning: The class 'SpecialTile' defines member function with name 'class_name' also defined in its parent class 'WorldMapObject'. [duplInheritedMember]
- static std::string class_name() { return "special-tile"; }
- ^
- src/worldmap/worldmap_object.hpp:40:22: note: Parent function 'WorldMapObject::class_name'
- static std::string class_name() { return "worldmap-object"; }
- ^
- src/worldmap/special_tile.hpp:34:22: note: Derived function 'SpecialTile::class_name'
- static std::string class_name() { return "special-tile"; }
- ^
- src/worldmap/special_tile.hpp:34:22: warning: The class 'SpecialTile' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "special-tile"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/worldmap/special_tile.hpp:34:22: note: Derived function 'SpecialTile::class_name'
- static std::string class_name() { return "special-tile"; }
- ^
- src/worldmap/special_tile.hpp:34:22: warning: The class 'SpecialTile' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "special-tile"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/worldmap/special_tile.hpp:34:22: note: Derived function 'SpecialTile::class_name'
- static std::string class_name() { return "special-tile"; }
- ^
- src/worldmap/sprite_change.hpp:33:22: warning: The class 'SpriteChange' defines member function with name 'class_name' also defined in its parent class 'WorldMapObject'. [duplInheritedMember]
- static std::string class_name() { return "sprite-change"; }
- ^
- src/worldmap/worldmap_object.hpp:40:22: note: Parent function 'WorldMapObject::class_name'
- static std::string class_name() { return "worldmap-object"; }
- ^
- src/worldmap/sprite_change.hpp:33:22: note: Derived function 'SpriteChange::class_name'
- static std::string class_name() { return "sprite-change"; }
- ^
- src/worldmap/sprite_change.hpp:33:22: warning: The class 'SpriteChange' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "sprite-change"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/worldmap/sprite_change.hpp:33:22: note: Derived function 'SpriteChange::class_name'
- static std::string class_name() { return "sprite-change"; }
- ^
- src/worldmap/sprite_change.hpp:33:22: warning: The class 'SpriteChange' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "sprite-change"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/worldmap/sprite_change.hpp:33:22: note: Derived function 'SpriteChange::class_name'
- static std::string class_name() { return "sprite-change"; }
- ^
- src/worldmap/teleporter.hpp:32:22: warning: The class 'Teleporter' defines member function with name 'class_name' also defined in its parent class 'WorldMapObject'. [duplInheritedMember]
- static std::string class_name() { return "teleporter"; }
- ^
- src/worldmap/worldmap_object.hpp:40:22: note: Parent function 'WorldMapObject::class_name'
- static std::string class_name() { return "worldmap-object"; }
- ^
- src/worldmap/teleporter.hpp:32:22: note: Derived function 'Teleporter::class_name'
- static std::string class_name() { return "teleporter"; }
- ^
- src/worldmap/teleporter.hpp:32:22: warning: The class 'Teleporter' defines member function with name 'class_name' also defined in its parent class 'MovingSprite'. [duplInheritedMember]
- static std::string class_name() { return "teleporter"; }
- ^
- src/object/moving_sprite.hpp:51:22: note: Parent function 'MovingSprite::class_name'
- static std::string class_name() { return "moving-sprite"; }
- ^
- src/worldmap/teleporter.hpp:32:22: note: Derived function 'Teleporter::class_name'
- static std::string class_name() { return "teleporter"; }
- ^
- src/worldmap/teleporter.hpp:32:22: warning: The class 'Teleporter' defines member function with name 'class_name' also defined in its parent class 'MovingObject'. [duplInheritedMember]
- static std::string class_name() { return "teleporter"; }
- ^
- src/supertux/moving_object.hpp:100:22: note: Parent function 'MovingObject::class_name'
- static std::string class_name() { return "moving-object"; }
- ^
- src/worldmap/teleporter.hpp:32:22: note: Derived function 'Teleporter::class_name'
- static std::string class_name() { return "teleporter"; }
- ^
- src/trigger/scripttrigger.hpp:25:3: style: Class 'ScriptTrigger' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ScriptTrigger(const ReaderMapping& reader);
- ^
- src/trigger/sequence_trigger.hpp:27:3: style: Class 'SequenceTrigger' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SequenceTrigger(const ReaderMapping& reader);
- ^
- src/trigger/switch.hpp:25:3: style: Class 'Switch' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Switch(const ReaderMapping& reader);
- ^
- src/trigger/text_area.hpp:38:3: style: Class 'TextArea' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TextArea(const ReaderMapping& mapping);
- ^
- src/worldmap/level_tile.hpp:31:3: style: Class 'LevelTile' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- LevelTile(const ReaderMapping& mapping);
- ^
- src/worldmap/spawn_point.hpp:33:3: style: Class 'SpawnPoint' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SpawnPoint(const ReaderMapping& mapping);
- ^
- src/worldmap/spawn_point.hpp:53:3: style: Class 'SpawnPointObject' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SpawnPointObject(const ReaderMapping& mapping);
- ^
- src/worldmap/special_tile.hpp:31:3: style: Class 'SpecialTile' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SpecialTile(const ReaderMapping& mapping);
- ^
- src/worldmap/sprite_change.hpp:30:3: style: Class 'SpriteChange' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- SpriteChange(const ReaderMapping& mapping);
- ^
- src/worldmap/teleporter.hpp:30:3: style: Class 'Teleporter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Teleporter(const ReaderMapping& mapping);
- ^
- src/supertux/game_object_factory.cpp:237:20: style: Variable 'm_adding_badguys' is reassigned a value before the old one has been used. [redundantAssignment]
- m_adding_badguys = false;
- ^
- src/supertux/game_object_factory.cpp:167:20: note: m_adding_badguys is assigned
- m_adding_badguys = true;
- ^
- src/supertux/game_object_factory.cpp:237:20: note: m_adding_badguys is overwritten
- m_adding_badguys = false;
- ^
- src/supertux/game_session.cpp:410:7: style: The statement 'if (!m_active) m_active=true' is logically equivalent to 'm_active=true'. [duplicateConditionalAssign]
- if (!m_active)
- ^
- src/supertux/game_session.cpp:412:14: note: Assignment 'm_active=true'
- m_active = true;
- ^
- src/supertux/game_session.cpp:410:7: note: Condition '!m_active' is redundant
- if (!m_active)
- ^
- src/supertux/game_session.cpp:496:24: style: Variable 'player' can be declared as pointer to const [constVariableReference]
- for (const auto& player : m_currentsector->get_players())
- ^
- src/supertux/info_box.hpp:34:3: style: Class 'InfoBox' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- InfoBox(const std::string& text);
- ^
- src/supertux/level.cpp:213:11: style: Variable 'test' can be declared as pointer to const [constVariablePointer]
- Sector* test = get_sector(sector->get_name());
- ^
- src/supertux/level.cpp:250:12: style: Variable 'coin' can be declared as pointer to const [constVariablePointer]
- auto coin = dynamic_cast<Coin*>(o.get());
- ^
- src/supertux/level.cpp:256:12: style: Variable 'block' can be declared as pointer to const [constVariablePointer]
- auto block = dynamic_cast<BonusBlock*>(o.get());
- ^
- src/supertux/level.cpp:270:12: style: Variable 'goldbomb' can be declared as pointer to const [constVariablePointer]
- auto goldbomb = dynamic_cast<GoldBomb*>(o.get());
- ^
- src/supertux/levelintro.hpp:44:16: style: The function 'setup' overrides a function in a base class but is identical to the overridden function [uselessOverride]
- virtual void setup() override;
- ^
- src/supertux/screen.hpp:41:16: note: Virtual function in base class
- virtual void setup()
- ^
- src/supertux/levelintro.hpp:44:16: note: Function in derived class
- virtual void setup() override;
- ^
- src/supertux/levelset.hpp:30:3: style: Class 'Levelset' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- Levelset(const std::string& basedir, bool recursively = false);
- ^
- src/supertux/main.cpp:0:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 15 configurations. Use --force to check all configurations. [toomanyconfigs]
- ^
- src/supertux/menu/addon_preview_menu.hpp:51:3: style: Class 'AddonPreviewMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- AddonPreviewMenu(const Addon& addon, bool auto_install = false, bool update = false);
- ^
- src/supertux/menu/download_dialog.hpp:37:3: style: Class 'DownloadDialog' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- DownloadDialog(TransferStatusPtr status, bool auto_close = false,
- ^
- src/supertux/menu/download_dialog.hpp:39:3: style: Class 'DownloadDialog' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- DownloadDialog(TransferStatusListPtr statuses, bool auto_close = false,
- ^
- src/supertux/menu/addon_browse_menu.cpp:82:14: style: Variable 'installed_addon' can be declared as reference to const [constVariableReference]
- Addon& installed_addon = m_addon_manager.get_installed_addon(addon_id);
- ^
- src/supertux/menu/addon_file_install_menu.hpp:27:3: style: Class 'AddonFileInstallMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- AddonFileInstallMenu(AddonMenu* addon_menu);
- ^
- src/supertux/menu/addon_preview_menu.cpp:153:11: style: Condition 'm_auto_install' is always false [knownConditionTrueFalse]
- if (m_auto_install)
- ^
- src/supertux/menu/addon_preview_menu.cpp:136:32: note: Assuming that condition '!m_auto_install' is not redundant
- if (screenshots_available && !m_auto_install)
- ^
- src/supertux/menu/addon_preview_menu.cpp:153:11: note: Condition 'm_auto_install' is always false
- if (m_auto_install)
- ^
- src/supertux/menu/cheat_apply_menu.hpp:27:3: style: Class 'CheatApplyMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- CheatApplyMenu(std::function<void(Player&)> callback);
- ^
- src/supertux/menu/cheat_apply_menu.hpp:29:3: style: Class 'CheatApplyMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- CheatApplyMenu(std::function<void(Player&, int)> callback);
- ^
- src/supertux/menu/contrib_levelset_menu.hpp:32:3: style: Class 'ContribLevelsetMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ContribLevelsetMenu(std::unique_ptr<World> current_world);
- ^
- src/supertux/menu/custom_menu_menu.cpp:19:0: information: Include file: "config.h" not found. [missingInclude]
- #include "config.h"
- ^
- src/supertux/menu/editor_level_select_menu.hpp:30:3: style: Class 'EditorLevelSelectMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- EditorLevelSelectMenu(std::unique_ptr<World> world, EditorLevelsetSelectMenu* levelset_select_menu = nullptr);
- ^
- src/supertux/menu/editor_delete_levelset_menu.hpp:28:3: style: Class 'EditorDeleteLevelsetMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- EditorDeleteLevelsetMenu(EditorLevelsetSelectMenu* editor_levelset_select_menu);
- ^
- src/supertux/menu/editor_delete_levelset_menu.cpp:46:20: style: Variable 'level_world' can be declared as reference to const [constVariableReference]
- for(std::string& level_world : contrib_worlds)
- ^
- src/supertux/menu/editor_levelset_menu.hpp:27:3: style: Class 'EditorLevelsetMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- EditorLevelsetMenu(World* world_);
- ^
- src/supertux/menu/editor_level_select_menu.cpp:62:10: style: Variable 'world' can be declared as pointer to const [constVariablePointer]
- World* world = get_world();
- ^
- src/supertux/menu/editor_level_select_menu.cpp:131:10: style: Variable 'world' can be declared as pointer to const [constVariablePointer]
- World* world = get_world();
- ^
- src/supertux/menu/editor_level_select_menu.cpp:171:8: style: Variable 'editor' can be declared as pointer to const [constVariablePointer]
- auto editor = Editor::current();
- ^
- src/supertux/menu/editor_save_as.hpp:31:3: style: Class 'EditorSaveAs' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- EditorSaveAs(bool do_switch_file);
- ^
- src/supertux/menu/editor_objectgroup_menu.cpp:34:14: style: Variable 'og' can be declared as reference to const [constVariableReference]
- for (auto& og : Editor::current()->get_objectgroups()) {
- ^
- src/supertux/menu/editor_sector_menu.cpp:51:8: style: Variable 'editor' can be declared as pointer to const [constVariablePointer]
- auto editor = Editor::current();
- ^
- src/supertux/menu/editor_sector_menu.cpp:56:8: style: Variable 'level' can be declared as pointer to const [constVariablePointer]
- auto level = editor->get_level();
- ^
- src/supertux/menu/editor_sectors_menu.cpp:87:10: style: Variable 'level' can be declared as pointer to const [constVariablePointer]
- Level* level = Editor::current()->get_level();
- ^
- src/supertux/menu/editor_sectors_menu.cpp:113:12: style: Variable 'level' can be declared as pointer to const [constVariablePointer]
- Level* level = Editor::current()->get_level();
- ^
- src/supertux/menu/editor_sectors_menu.cpp:114:13: style: Variable 'sector' can be declared as pointer to const [constVariablePointer]
- Sector* sector = level->get_sector(item.get_id());
- ^
- src/supertux/menu/editor_tilegroup_menu.cpp:30:14: style: Variable 'tg' can be declared as reference to const [constVariableReference]
- for (auto& tg : Editor::current()->get_tilegroups()) {
- ^
- src/supertux/menu/game_menu.cpp:47:10: style: Variable 'level' can be declared as reference to const [constVariableReference]
- Level& level = GameSession::current()->get_current_level();
- ^
- src/supertux/menu/integrations_menu.cpp:21:0: information: Include file: "config.h" not found. [missingInclude]
- #include "config.h"
- ^
- src/supertux/menu/joystick_menu.hpp:27:3: style: Class 'JoystickMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- JoystickMenu(InputManager& input_manager);
- ^
- src/supertux/menu/keyboard_menu.hpp:29:3: style: Class 'KeyboardMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- KeyboardMenu(InputManager& input_manager, int player_id = 0);
- ^
- src/supertux/menu/keyboard_menu.cpp:155:19: style: Variable 'kbd_cfg' can be declared as reference to const [constVariableReference]
- KeyboardConfig& kbd_cfg = g_config->keyboard_config;
- ^
- src/supertux/menu/options_select_menu.hpp:28:3: style: Class 'OptionsSelectMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- OptionsSelectMenu(bool complete = true);
- ^
- src/supertux/menu/multiplayer_player_menu.hpp:25:3: style: Class 'MultiplayerPlayerMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- MultiplayerPlayerMenu(int player_id);
- ^
- src/supertux/menu/options_menu.hpp:56:8: style: Unused private function: 'OptionsMenu::add_mobile_control_scales' [unusedPrivateFunction]
- void add_mobile_control_scales();
- ^
- src/supertux/menu/options_menu.hpp:50:8: style: Unused private function: 'OptionsMenu::add_aspect_ratio' [unusedPrivateFunction]
- void add_aspect_ratio();
- ^
- src/supertux/menu/options_menu.hpp:51:8: style: Unused private function: 'OptionsMenu::add_window_resolutions' [unusedPrivateFunction]
- void add_window_resolutions();
- ^
- src/supertux/menu/options_menu.hpp:52:8: style: Unused private function: 'OptionsMenu::add_resolutions' [unusedPrivateFunction]
- void add_resolutions();
- ^
- src/supertux/menu/profile_name_menu.hpp:27:3: style: Class 'ProfileNameMenu' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- ProfileNameMenu(Profile* profile = nullptr);
- ^
- src/supertux/menu/profile_menu.cpp:159:18: style: Variable 'profile' can be declared as pointer to const [constVariablePointer]
- for (auto* profile : m_profiles)
- ^
- src/supertux/menu/profile_menu.cpp:180:18: style: Variable 'profile' can be declared as pointer to const [constVariablePointer]
- for (auto* profile : m_profiles)
- ^
- src/supertux/menu/sorted_contrib_menu.cpp:29:75: style: Parameter 'worlds' can be declared as reference to const [constParameterReference]
- SortedContribMenu::SortedContribMenu(std::vector<std::unique_ptr<World>>& worlds, const std::string& contrib_type, const std::string& title, const std::string& empty_message) :
- ^
- src/supertux/menu/web_asset_menu.cpp:31:0: information: Include file: "physfs.h" not found. [missingInclude]
- #include "physfs.h"
- ^
- src/supertux/savegame.cpp:426:17: style: Variable 'state' is assigned a value that is never used. [unreadVariable]
- LevelsetState state = get_levelset_state(basedir);
- ^
- src/supertux/sector.cpp:248:5: error: Using reference to dangling temporary. [danglingTempReference]
- player.move(player.get_pos()+Vector(-32, 0));
- ^
- src/supertux/sector.cpp:246:20: note: Assigned to reference.
- Player& player = *(get_players()[0]);
- ^
- src/supertux/sector.cpp:248:5: note: Using reference to dangling temporary.
- player.move(player.get_pos()+Vector(-32, 0));
- ^
- src/supertux/sector.cpp:249:18: error: Using reference to dangling temporary. [danglingTempReference]
- camera.reset(player.get_pos());
- ^
- src/supertux/sector.cpp:246:20: note: Assigned to reference.
- Player& player = *(get_players()[0]);
- ^
- src/supertux/sector.cpp:249:18: note: Using reference to dangling temporary.
- camera.reset(player.get_pos());
- ^
- src/supertux/sector.cpp:251:5: error: Using reference to dangling temporary. [danglingTempReference]
- player.move(player.get_pos()+(Vector(32, 0)));
- ^
- src/supertux/sector.cpp:246:20: note: Assigned to reference.
- Player& player = *(get_players()[0]);
- ^
- src/supertux/sector.cpp:251:5: note: Using reference to dangling temporary.
- player.move(player.get_pos()+(Vector(32, 0)));
- ^
- src/supertux/sector.cpp:297:11: style: Variable 'camera' can be declared as reference to const [constVariableReference]
- Camera& camera = get_camera();
- ^
- src/supertux/sector.cpp:473:11: style: Variable 'camera' can be declared as reference to const [constVariableReference]
- Camera& camera = get_camera();
- ^
- src/supertux/sector.cpp:544:13: style: Variable 'player' can be declared as reference to const [constVariableReference]
- Player& player = *static_cast<Player*>(player_ptr);
- ^
- src/supertux/sector.cpp:174:21: style: Variable 'sp' can be declared as pointer to const [constVariablePointer]
- SpawnPointMarker* sp = nullptr;
- ^
- src/supertux/sector.cpp:558:20: style: Variable 'tilemap' can be declared as pointer to const [constVariableReference]
- for (const auto& tilemap : get_all_tilemaps()) {
- ^
- src/supertux/sector.cpp:577:20: style: Variable 'tilemap' can be declared as pointer to const [constVariableReference]
- for (const auto& tilemap : get_all_tilemaps()) {
- ^
- src/supertux/sector.cpp:725:58: style: Parameter 'rhs' can be declared as pointer to const [constParameterPointer]
- [](const GameObject* lhs, GameObject* rhs) {
- ^
- src/supertux/screen_manager.cpp:218:61: style: Parameter 'fps_statistics' can be declared as reference to const [constParameterReference]
- ScreenManager::draw_fps(DrawingContext& context, FPS_Stats& fps_statistics)
- ^
- src/supertux/screen_manager.cpp:252:13: style: Variable 'sector' can be declared as reference to const [constVariableReference]
- Sector& sector = session->get_current_sector();
- ^
- src/supertux/screen_manager.cpp:250:12: style: Variable 'session' can be declared as pointer to const [constVariablePointer]
- if (auto session = GameSession::current())
- ^
- src/supertux/screen_manager.cpp:553:50: warning: Either the condition 'm_screen_stack.empty()' is redundant or expression 'm_screen_stack.back()' cause access out of bounds. [containerOutOfBounds]
- if (current_screen != m_screen_stack.back().get())
- ^
- src/supertux/screen_manager.cpp:562:36: note: Assuming that condition 'm_screen_stack.empty()' is not redundant
- if (!m_screen_stack.empty())
- ^
- src/supertux/screen_manager.cpp:553:50: note: Access out of bounds
- if (current_screen != m_screen_stack.back().get())
- ^
- src/supertux/tile_set.cpp:134:11: style: Variable 'tile_object' can be declared as pointer to const [constVariablePointer]
- Tile* tile_object = m_tiles[tile].get();
- ^
- src/supertux/world.hpp:34:3: style: Class 'World' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- World(const std::string& directory);
- ^
- src/trigger/door.cpp:190:15: style: Variable 'player' can be declared as pointer to const [constVariablePointer]
- Player* player = dynamic_cast<Player*> (&other);
- ^
- src/util/colorspace_oklab.cpp:311:31: style: Parameter 'c' can be declared as reference to const [constParameterReference]
- ColorOKLCh::ColorOKLCh(Color& c) :
- ^
- src/util/line_iterator.hpp:39:3: style: Class 'LineIterator' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- LineIterator(const std::string& str);
- ^
- src/util/utf8_iterator.hpp:31:3: style: Class 'UTF8Iterator' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- UTF8Iterator(const std::string& text_);
- ^
- src/video/drawing_request.hpp:62:3: style: Struct 'TextureRequest' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TextureRequest(const DrawingTransform& transform) :
- ^
- src/video/drawing_request.hpp:88:3: style: Struct 'GradientRequest' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GradientRequest(const DrawingTransform& transform) :
- ^
- src/video/drawing_request.hpp:110:3: style: Struct 'FillRectRequest' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- FillRectRequest(const DrawingTransform& transform) :
- ^
- src/video/drawing_request.hpp:126:3: style: Struct 'InverseEllipseRequest' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- InverseEllipseRequest(const DrawingTransform& transform) :
- ^
- src/video/drawing_request.hpp:142:3: style: Struct 'LineRequest' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- LineRequest(const DrawingTransform& transform) :
- ^
- src/video/drawing_request.hpp:158:3: style: Struct 'TriangleRequest' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- TriangleRequest(const DrawingTransform& transform) :
- ^
- src/video/drawing_request.hpp:174:3: style: Struct 'GetPixelRequest' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GetPixelRequest(const DrawingTransform& transform) :
- ^
- src/video/bitmap_font.cpp:369:13: warning: Either the condition 'i==text.size()' is redundant or 'i' can have the value text.size(). Expression 'text[i]' cause access out of bounds. [containerOutOfBounds]
- if (text[i] == '\n' || i == text.size())
- ^
- src/video/bitmap_font.cpp:369:30: note: Assuming that condition 'i==text.size()' is not redundant
- if (text[i] == '\n' || i == text.size())
- ^
- src/video/bitmap_font.cpp:369:13: note: Access out of bounds
- if (text[i] == '\n' || i == text.size())
- ^
- src/video/compositor.cpp:56:71: style: Parameter 'ctx' can be declared as reference to const [constParameterReference]
- [](std::unique_ptr<DrawingContext>& ctx){
- ^
- src/video/gl/gl_framebuffer.hpp:31:3: style: Class 'GLFramebuffer' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GLFramebuffer(/*GLVideoSystem& video_system,*/ GLTexture& texture);
- ^
- src/video/gl/gl_framebuffer.cpp:22:74: style: Parameter 'texture' can be declared as reference to const [constParameterReference]
- GLFramebuffer::GLFramebuffer(/*GLVideoSystem& video_system,*/ GLTexture& texture) :
- ^
- src/video/gl/gl33core_context.hpp:32:3: style: Class 'GL33CoreContext' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GL33CoreContext(GLVideoSystem& video_system);
- ^
- src/video/gl/gl_shader.hpp:33:3: style: Class 'GLShader' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GLShader(GLenum type);
- ^
- src/video/gl/gl_vertex_arrays.hpp:30:3: style: Class 'GLVertexArrays' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GLVertexArrays(GL33CoreContext& context);
- ^
- src/video/gl/gl33core_context.cpp:65:22: style: Variable 'back_renderer' can be declared as pointer to const [constVariablePointer]
- GLTextureRenderer* back_renderer = static_cast<GLTextureRenderer*>(m_video_system.get_back_renderer());
- ^
- src/video/gl/gl33core_context.cpp:67:14: style: Variable 'texture' can be declared as pointer to const [constVariablePointer]
- GLTexture* texture;
- ^
- src/video/gl/gl33core_context.cpp:182:22: style: Variable 'back_renderer' can be declared as pointer to const [constVariablePointer]
- GLTextureRenderer* back_renderer = static_cast<GLTextureRenderer*>(m_video_system.get_back_renderer());
- ^
- src/video/gl/gl_screen_renderer.cpp:0:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 14 configurations. Use --force to check all configurations. [toomanyconfigs]
- ^
- src/video/gl/gl_screen_renderer.hpp:32:3: style: Class 'GLScreenRenderer' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- GLScreenRenderer(GLVideoSystem& video_system);
- ^
- src/video/gl/gl_texture.cpp:0:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 14 configurations. Use --force to check all configurations. [toomanyconfigs]
- ^
- src/video/gl/gl_video_system.cpp:0:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 17 configurations. Use --force to check all configurations. [toomanyconfigs]
- ^
- src/video/gl/gl_video_system.cpp:365:11: style: Variable 'src' can be declared as pointer to const [constVariablePointer]
- char* src = &pixels[3 * viewport_width * (viewport_height - i - 1)];
- ^
- src/video/null/null_texture.hpp:27:3: style: Class 'NullTexture' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- NullTexture(const Size& size);
- ^
- src/video/sdlbase_video_system.cpp:134:15: style: Condition 'g_config->fit_window' is always true [knownConditionTrueFalse]
- if (g_config->fit_window)
- ^
- src/video/sdlbase_video_system.cpp:132:26: note: Assignment 'g_config->fit_window=true', assigned value is 1
- g_config->fit_window = true;
- ^
- src/video/sdlbase_video_system.cpp:134:15: note: Condition 'g_config->fit_window' is always true
- if (g_config->fit_window)
- ^
- src/video/viewport.cpp:21:0: information: Include file: "config.h" not found. [missingInclude]
- #include "config.h"
- ^
- src/worldmap/camera.cpp:97:9: style: Variable 'worldmap_sector' can be declared as reference to const [constVariableReference]
- auto& worldmap_sector = *WorldMapSector::current();
- ^
- src/worldmap/tux.cpp:385:40: style: Parameter 'special_tile' can be declared as pointer to const [constParameterPointer]
- Tux::process_special_tile(SpecialTile* special_tile)
- ^
- src/worldmap/world_select.hpp:49:3: style: Class 'WorldSelect' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- WorldSelect(const std::string& current_world_filename);
- ^
- src/worldmap/worldmap_state.hpp:38:3: style: Class 'WorldMapState' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- WorldMapState(WorldMap& worldmap);
- ^
- src/worldmap/worldmap.cpp:211:14: style: Variable 'sector' can be declared as reference to const [constVariableReference]
- for (auto& sector : m_sectors)
- ^
- src/worldmap/worldmap.cpp:222:14: style: Variable 'sector' can be declared as reference to const [constVariableReference]
- for (auto& sector : m_sectors)
- ^
- src/worldmap/worldmap_sector.cpp:240:18: style: Variable 'special_tile' can be declared as pointer to const [constVariablePointer]
- SpecialTile* special_tile = at_object<SpecialTile>();
- ^
- src/worldmap/worldmap_sector.cpp:252:17: style: Variable 'teleporter' can be declared as pointer to const [constVariablePointer]
- Teleporter* teleporter = at_object<Teleporter>();
- ^
- src/worldmap/worldmap_sector.cpp:284:12: style: Variable 'teleporter' can be declared as pointer to const [constVariablePointer]
- auto teleporter = at_object<Teleporter>();
- ^
- src/worldmap/worldmap_sector.cpp:422:20: style: Variable 'tilemap' can be declared as pointer to const [constVariableReference]
- for (const auto& tilemap : get_solid_tilemaps()) {
- ^
- src/worldmap/worldmap_sector.cpp:453:39: style: Parameter 'gamelevel' can be declared as pointer to const [constParameterPointer]
- WorldMapSector::finished_level(Level* gamelevel)
- ^
- src/worldmap/worldmap_sector.cpp:567:8: style: Variable 'sp' can be declared as pointer to const [constVariablePointer]
- auto sp = get_spawnpoint_by_name(spawnpoint);
- ^
- src/worldmap/worldmap_sector_parser.hpp:33:3: style: Class 'WorldMapSectorParser' has a constructor with 1 argument that is not explicit. [noExplicitConstructor]
- WorldMapSectorParser(WorldMapSector& sector);
- ^
- nofile:0:0: information: Active checkers: 157/592 (use --checkers-report=<filename> to see details) [checkersReport]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement