FLTK logo

[master] f56d43c - Rename private member function with trailing underscore.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] f56d43c - Rename private member function with trailing underscore. "ManoloFLTK" Nov 19, 2020  
 
commit f56d43c9f6ffe08a0d62668fec6120d9c800ed2e
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Wed Nov 18 10:03:02 2020 +0100
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Thu Nov 19 15:59:48 2020 +0100

    Rename private member function with trailing underscore.

 FL/Fl_Image.H              | 2 +-
 FL/Fl_SVG_Image.H          | 2 +-
 src/Fl_Graphics_Driver.cxx | 2 +-
 src/Fl_SVG_Image.cxx       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git FL/Fl_Image.H FL/Fl_Image.H
index 4b5419c..daac001 100644
--- FL/Fl_Image.H
+++ FL/Fl_Image.H
@@ -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:
 
diff --git FL/Fl_SVG_Image.H FL/Fl_SVG_Image.H
index a5ef519..5fec922 100644
--- FL/Fl_SVG_Image.H
+++ FL/Fl_SVG_Image.H
@@ -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:
diff --git src/Fl_Graphics_Driver.cxx src/Fl_Graphics_Driver.cxx
index 988794c..d0b9bf3 100644
--- src/Fl_Graphics_Driver.cxx
+++ src/Fl_Graphics_Driver.cxx
@@ -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.
diff --git src/Fl_SVG_Image.cxx src/Fl_SVG_Image.cxx
index 6b241f8..8b9f01c 100644
--- src/Fl_SVG_Image.cxx
+++ src/Fl_SVG_Image.cxx
@@ -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.
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.