[Libreoffice-commits] core.git: vcl/coretext

Tor Lillqvist tml at iki.fi
Sun May 12 00:15:57 PDT 2013


 vcl/coretext/salcoretextlayout.cxx |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

New commits:
commit 0037c288a15423d800d4df311741cc77411663df
Author: Tor Lillqvist <tml at iki.fi>
Date:   Sun May 12 10:13:57 2013 +0300

    WaE: private field 'mpGraphics' is not used
    
    Change-Id: Id10519547445b5e67d3328a82909f85f9de83a80

diff --git a/vcl/coretext/salcoretextlayout.cxx b/vcl/coretext/salcoretextlayout.cxx
index 109900f..f1944be 100644
--- a/vcl/coretext/salcoretextlayout.cxx
+++ b/vcl/coretext/salcoretextlayout.cxx
@@ -33,7 +33,7 @@
 class CoreTextLayout SAL_FINAL : public SalLayout
 {
 public:
-    CoreTextLayout( QuartzSalGraphics* graphics, CoreTextStyleInfo* style);
+    CoreTextLayout( CoreTextStyleInfo* style );
     ~CoreTextLayout();
 
     // Overrides in same order as in base class, without "virtual" and
@@ -67,7 +67,6 @@ private:
     sal_Unicode *mpSavedStr;
 #endif
 
-    QuartzSalGraphics* mpGraphics;
     CoreTextStyleInfo* mpStyle;
 
     int mnCharCount;                    // ==mnEndCharPos-mnMinCharPos
@@ -100,11 +99,10 @@ private:
     mutable CFArrayRef mpRuns;
 };
 
-CoreTextLayout::CoreTextLayout(QuartzSalGraphics* graphics, CoreTextStyleInfo* style) :
+CoreTextLayout::CoreTextLayout(CoreTextStyleInfo* style) :
 #ifndef NDEBUG
     mpSavedStr(NULL),
 #endif
-    mpGraphics(graphics),
     mpStyle(style),
     mnCharCount(-1),
     mnGlyphCount(-1),
@@ -693,7 +691,7 @@ void CoreTextLayout::Simplify( bool /*bIsBase*/ )
 
 SalLayout* QuartzSalGraphics::GetTextLayout( ImplLayoutArgs&, int /*nFallbackLevel*/ )
 {
-    CoreTextLayout* layout = new CoreTextLayout( this, m_style );
+    CoreTextLayout* layout = new CoreTextLayout( m_style );
 
     return layout;
 }


More information about the Libreoffice-commits mailing list