dmuratshin 9 years ago
parent
commit
1f8094d9b5

+ 2 - 2
oxygine/src/Font.cpp

@@ -51,7 +51,7 @@ namespace oxygine
         return ob1.ch < ob2.ch;
     }
 
-    const glyph* Font::findGlyph(int code, const glyphOptions &opt) const
+    const glyph* Font::findGlyph(int code, const glyphOptions& opt) const
     {
         glyph g;
         g.ch = code;
@@ -65,7 +65,7 @@ namespace oxygine
         return 0;
     }
 
-    const glyph* Font::getGlyph(int code, const glyphOptions &opt) const
+    const glyph* Font::getGlyph(int code, const glyphOptions& opt) const
     {
         const glyph* g = findGlyph(code, opt);
         if (g)

+ 3 - 3
oxygine/src/Font.h

@@ -59,7 +59,7 @@ namespace oxygine
 
         void setScale(float scale) { _scale = scale; }
 
-        const glyph*    getGlyph(int code, const glyphOptions &opt) const;
+        const glyph*    getGlyph(int code, const glyphOptions& opt) const;
         int             getBaselineDistance() const;
         int             getSize() const;
         float           getScale() const;
@@ -67,9 +67,9 @@ namespace oxygine
         bool            isSDF() const;
 
     protected:
-        const glyph* findGlyph(int code, const glyphOptions &opt) const;
+        const glyph* findGlyph(int code, const glyphOptions& opt) const;
 
-        virtual bool loadGlyph(int code, glyph&, const glyphOptions &opt) { return false; }
+        virtual bool loadGlyph(int code, glyph&, const glyphOptions& opt) { return false; }
 
 #ifdef __S3E__
         typedef std::set<glyph> glyphs;

+ 1 - 1
oxygine/src/TextStyle.h

@@ -41,7 +41,7 @@ namespace oxygine
             outline(0.0f),
             outlineColor(Color::Black),
             weight(0.5f),
-            options(0){}
+            options(0) {}
 
         const ResFont* font;
 

+ 1 - 1
oxygine/src/core/ImageDataOperations.cpp

@@ -108,7 +108,7 @@ namespace oxygine
             blitPremultiply(dest, dest);
         }
 
-        void blitColored(const ImageData& src, ImageData& dest, const Color &c)
+        void blitColored(const ImageData& src, ImageData& dest, const Color& c)
         {
             Pixel p;
             p.r = c.r;

+ 3 - 3
oxygine/src/core/ImageDataOperations.h

@@ -15,7 +15,7 @@ namespace oxygine
         void move(const ImageData& src, ImageData& dest);
 
         void blit(const ImageData& src, ImageData& dest);
-        void blitColored(const ImageData& src, ImageData& dest, const Color &c);
+        void blitColored(const ImageData& src, ImageData& dest, const Color& c);
         void blitPremultiply(const ImageData& src, ImageData& dest);
         void premultiply(ImageData& dest);
         void flipY(const ImageData& src, ImageData& dest);
@@ -124,8 +124,8 @@ namespace oxygine
 
         class op_blit_colored
         {
-        public:            
-            op_blit_colored(const Pixel &clr):color(clr){}
+        public:
+            op_blit_colored(const Pixel& clr): color(clr) {}
 
             template<class Src, class Dest>
             void operator()(const Src& srcPixelFormat, Dest& destPixelFormat, const unsigned char* srcData, unsigned char* destData) const

+ 1 - 1
oxygine/src/core/s3e/HttpRequestTaskS3E.cpp

@@ -6,7 +6,7 @@ namespace oxygine
     {
         return new HttpRequestTaskS3E;
     }
-     
+
 
     void HttpRequestTask::init()
     {

+ 3 - 3
oxygine/src/res/ResFontBM.cpp

@@ -439,10 +439,10 @@ namespace oxygine
     void ResFontBM::_finalize()
     {
         glyphOptions opt = 0;
-        const glyph *g = _font->getGlyph(0xA0, opt);
+        const glyph* g = _font->getGlyph(0xA0, opt);
         if (g)
             return;
-        
+
         g = _font->getGlyph(' ', opt);
         if (!g)
             return;
@@ -450,7 +450,7 @@ namespace oxygine
         glyph p = *g;
         p.ch = 0xA0;
         _font->addGlyph(p);
-        
+
     }
 
     void ResFontBM::_createFont(CreateResourceContext* context, bool sd, bool bmc, int downsample)

+ 1 - 1
oxygine/src/text_utils/Node.cpp

@@ -176,7 +176,7 @@ namespace oxygine
                     if (s.code == '\n')
                         rd.nextLine();
                     else
-                    {                        
+                    {
                         const glyph* gl = font->getGlyph(s.code, opt);
                         if (gl)
                         {