Rename private member function with trailing underscore.

This commit is contained in:
ManoloFLTK 2020-11-18 10:03:02 +01:00
parent 0f6fb2ab5a
commit f56d43c9f6
4 changed files with 4 additions and 4 deletions

View File

@ -76,7 +76,7 @@ private:
Fl_Image & operator=(const Fl_Image &);
Fl_Image(const Fl_Image &);
// Presently redefined in Fl_SVG_Image
virtual void cache_size(int &width, int &height) {}
virtual void cache_size_(int &width, int &height) {}
protected:

View File

@ -146,7 +146,7 @@ private:
float average_weight_;
float svg_scaling_(int W, int H);
void rasterize_(int W, int H);
virtual void cache_size(int &width, int &height);
virtual void cache_size_(int &width, int &height);
void init_(const char *filename, const char *filedata, Fl_SVG_Image *copy_source);
Fl_SVG_Image(Fl_SVG_Image *source);
public:

View File

@ -210,7 +210,7 @@ void Fl_Graphics_Driver::cache_size(Fl_Image *img, int &width, int &height)
width = (width+1) * scale();
height = (height+1) * scale();
}
img->cache_size(width, height);
img->cache_size_(width, height);
}
/** Draws an Fl_Pixmap object using this graphics driver.

View File

@ -235,7 +235,7 @@ void Fl_SVG_Image::resize(int width, int height) {
}
void Fl_SVG_Image::cache_size(int &width, int &height) {
void Fl_SVG_Image::cache_size_(int &width, int &height) {
if (proportional) {
// Keep the rasterized image proportional to its source-level width and height
// while maintaining it large enough to allow image tiling.