Skip to content

Commit

Permalink
cppcheck changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-velicu committed Oct 26, 2023
1 parent 7da2411 commit 6f4c505
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doodle_jump/platform/PlatformGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ PlatformGenerator& PlatformGenerator::operator=(const PlatformGenerator& platfor
return *this;
}

PlatformGenerator::PlatformGenerator(const PlatformGenerator& platformGenerator_) {
std::cout << "PlatformGenerator copy constructor called\n";
lastPlatform = platformGenerator_.lastPlatform;
}

// Platform PlatformGenerator::getLastPlatform() {
// return lastPlatform;
// }
Expand Down
1 change: 1 addition & 0 deletions doodle_jump/platform/PlatformGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class PlatformGenerator {
PlatformGenerator();
~PlatformGenerator();
PlatformGenerator& operator=(const PlatformGenerator& platformGenerator_);
PlatformGenerator(const PlatformGenerator& platformGenerator_);
sf::Vector2f getLastPlatformCoordinates();
void setLastPlatform(Platform* lastPlatform_);
};

0 comments on commit 6f4c505

Please sign in to comment.