Skip to content

Commit

Permalink
Silence warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpartanJ committed Nov 24, 2024
1 parent 5afa37f commit e4e8d91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/eepp/graphics/image.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class EE_API Image {
Sizei getSize();

/** Save the Image to a new File in a specific format */
virtual bool saveToFile( const std::string& filepath, const SaveType& Format ) const;
virtual bool saveToFile( const std::string& filepath, const SaveType& Format );

/** Create an Alpha mask from a Color */
virtual void createMaskFromColor( const Color& ColorKey, Uint8 Alpha );
Expand Down
2 changes: 1 addition & 1 deletion include/eepp/graphics/texture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class EE_API Texture : public DrawableResource, public Image, private NonCopyabl
const Filter& getFilter() const;

/** Save the Texture to a new File */
bool saveToFile( const std::string& filepath, const Image::SaveType& Format );
virtual bool saveToFile( const std::string& filepath, const Image::SaveType& Format );

/** Replace a color on the texture */
void replaceColor( const Color& ColorKey, const Color& NewColor );
Expand Down
2 changes: 1 addition & 1 deletion src/eepp/graphics/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ unsigned int Image::getChannels() const {
return mChannels;
}

bool Image::saveToFile( const std::string& filepath, const SaveType& Format ) const {
bool Image::saveToFile( const std::string& filepath, const SaveType& Format ) {
bool Res = false;

std::string fpath( FileSystem::fileRemoveFileName( filepath ) );
Expand Down

0 comments on commit e4e8d91

Please sign in to comment.