Commits

Anonymous committed 5d4c138

CWS-TOOLING: integrate CWS cmcfixes61
2009-07-22 10:53:14 +0200 cmc r274224 : #i103714# duplicate patch
2009-07-22 10:45:26 +0200 cmc r274223 : #i103715# fix up m68k makefile.mk
2009-07-22 10:32:16 +0200 cmc r274222 : #i103714# || && new gcc warnings
2009-07-21 13:29:17 +0200 cmc r274190 : #i103651# fix for subpixel gray line in cairo canvas animations
2009-07-20 17:35:58 +0200 cmc r274151 : #i103668# WaE over use of const
2009-07-20 15:53:51 +0200 cmc r274146 : #i103664# use boost::addressof instead
2009-07-20 15:38:40 +0200 cmc r274145 : #i103451# long -> INT32 for these streamable values
2009-07-20 15:33:15 +0200 cmc r274144 : #i103663 clear low-hanging aliasing warnings
2009-07-20 15:28:23 +0200 cmc r274143 : #i103662 clear low-hanging aliasing warnings
2009-07-20 15:21:46 +0200 cmc r274142 : #i103661 clear low-hanging aliasing warnings
2009-07-20 15:16:05 +0200 cmc r274141 : #i103660 clear low-hanging aliasing warnings

Comments (0)

Files changed (25)

bridges/source/cpp_uno/gcc3_linux_m68k/makefile.mk

 SLOFILES= \
 	$(SLO)$/cpp2uno.obj \
 	$(SLO)$/except.obj \
-	$(SLO)$/uno2cpp.obj \
-	$(SLO)$/m68khelper.obj
+	$(SLO)$/uno2cpp.obj
 
 SHL1TARGET= $(TARGET)
 
 # --- Targets ------------------------------------------------------
 
 .INCLUDE :  target.mk
-
-$(SLO)$/%.obj: %.s
-       $(CXX) -c -o $(SLO)$/$(@:b).o $< -fPIC ; touch $@

canvas/source/cairo/cairo_canvashelper.cxx

 		    nY = aP.getY();
 		    cairo_matrix_transform_point( &aOrigMatrix, &nX, &nY );
 
- 		    if( ! bIsBezier && bIsRectangle ) {
+ 		    if( ! bIsBezier && (bIsRectangle || aOperation == Clip) ) {
                 nX = basegfx::fround( nX );
                 nY = basegfx::fround( nY );
 		    }

reportdesign/source/ui/report/ScrollHelper.cxx

 	// disable painting in the corner between the scrollbars
 	if ( bVVisible && bHVisible )
 	{
-		m_aCornerWin.SetPosSizePixel(*((Point*) &aOutPixSz), Size(nScrSize, nScrSize) );
+		m_aCornerWin.SetPosSizePixel(Point(aOutPixSz.Width(), aOutPixSz.Height()), Size(nScrSize, nScrSize) );
 		m_aCornerWin.Show();
 	}
 	else

svtools/source/control/scrwin.cxx

 	// disable painting in the corner between the scrollbars
 	if ( bVVisible && bHVisible )
 	{
-		aCornerWin.SetPosSizePixel(
-			*((Point*) &aOutPixSz), Size(nScrSize, nScrSize) );
+		aCornerWin.SetPosSizePixel(Point(aOutPixSz.Width(), aOutPixSz.Height()),
+			Size(nScrSize, nScrSize) );
 		aCornerWin.Show();
 	}
 	else

svx/inc/svx/svdpntv.hxx

 	USHORT GetHitTolerancePixel() const { return (USHORT)nHitTolPix; }
 
     // data read access on logic HitTolerance and MinMoveTolerance
-    const USHORT getHitTolLog() const { return nHitTolLog; }
-    const USHORT getMinMovLog() const { return nMinMovLog; }
+    USHORT getHitTolLog() const { return nHitTolLog; }
+    USHORT getMinMovLog() const { return nMinMovLog; }
 
 	// Flag zur Visualisierung von Gruppen abfragen/testen
 	BOOL DoVisualizeEnteredGroup() const { return bVisualizeEnteredGroup; }

svx/inc/svx/xcolit.hxx

 public:
 			TYPEINFO();
 			XColorItem() {}
-			XColorItem(USHORT nWhich, long nIndex, const Color& rTheColor);
+			XColorItem(USHORT nWhich, INT32 nIndex, const Color& rTheColor);
 
 	virtual	sal_Bool        	 QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
 	virtual	sal_Bool			 PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );

svx/inc/svx/xflclit.hxx

 public:
 			TYPEINFO();
 			XFillColorItem() {}
-			XFillColorItem(long nIndex, const Color& rTheColor);
+			XFillColorItem(INT32 nIndex, const Color& rTheColor);
 			XFillColorItem(const String& rName, const Color& rTheColor);
 			XFillColorItem(SvStream& rIn);
 

svx/inc/svx/xflftrit.hxx

 							TYPEINFO();
 
 							XFillFloatTransparenceItem();
-							XFillFloatTransparenceItem( long nIndex, const XGradient& rGradient, BOOL bEnable = TRUE );
+							XFillFloatTransparenceItem( INT32 nIndex, const XGradient& rGradient, BOOL bEnable = TRUE );
 							XFillFloatTransparenceItem(const String& rName, const XGradient& rGradient, BOOL bEnable = TRUE );
 							XFillFloatTransparenceItem(SfxItemPool* pPool, const XGradient& rTheGradient, BOOL bEnable = TRUE );
 							XFillFloatTransparenceItem(SfxItemPool* pPool );

svx/inc/svx/xflgrit.hxx

 public:
 			TYPEINFO();
 			XFillGradientItem() : NameOrIndex(XATTR_FILLGRADIENT, -1) {}
-			XFillGradientItem(long nIndex, const XGradient& rTheGradient);
+			XFillGradientItem(INT32 nIndex, const XGradient& rTheGradient);
 			XFillGradientItem(const UniString& rName, const XGradient& rTheGradient);
 			XFillGradientItem(SfxItemPool* pPool, const XGradient& rTheGradient);
 			XFillGradientItem(SfxItemPool* pPool );

svx/inc/svx/xflhtit.hxx

 public:
 							TYPEINFO();
 							XFillHatchItem() : NameOrIndex(XATTR_FILLHATCH, -1) {}
-							XFillHatchItem(long nIndex, const XHatch& rTheHatch);
+							XFillHatchItem(INT32 nIndex, const XHatch& rTheHatch);
 							XFillHatchItem(const String& rName, const XHatch& rTheHatch);
 							XFillHatchItem(SfxItemPool* pPool, const XHatch& rTheHatch);
 							XFillHatchItem(SfxItemPool* pPool );

svx/inc/svx/xftshcit.hxx

 public:
 			TYPEINFO();
 			XFormTextShadowColorItem() {}
-			XFormTextShadowColorItem(long nIndex, const Color& rTheColor);
+			XFormTextShadowColorItem(INT32 nIndex, const Color& rTheColor);
 			XFormTextShadowColorItem(const String& rName, const Color& rTheColor);
 			XFormTextShadowColorItem(SvStream& rIn);
 

svx/inc/svx/xit.hxx

 //-------------------
 class SVX_DLLPUBLIC NameOrIndex : public SfxStringItem
 {
-	long    nPalIndex;
+	INT32    nPalIndex;
 
 protected:
 	void    Detach()    { nPalIndex = -1; }
 public:
 			TYPEINFO();
 			NameOrIndex() { nPalIndex = -1; }
-			NameOrIndex(USHORT nWhich, long nIndex);
+			NameOrIndex(USHORT nWhich, INT32 nIndex);
 			NameOrIndex(USHORT nWhich,
 						const String& rName= String());
 			NameOrIndex(USHORT nWhich, SvStream& rIn);
 
 			String       GetName() const              { return GetValue();   }
 			void         SetName(const String& rName) { SetValue(rName);     }
-			long         GetIndex() const             { return nPalIndex;    }
-			void         SetIndex(long nIndex)        { nPalIndex = nIndex;  }
+			INT32        GetIndex() const             { return nPalIndex;    }
+			void         SetIndex(INT32 nIndex)        { nPalIndex = nIndex;  }
 			BOOL         IsIndex() const          { return (nPalIndex >= 0); }
 
 	/** this static checks if the given NameOrIndex item has a unique name for its value.

svx/inc/svx/xlnclit.hxx

 public:
 			TYPEINFO();
 			XLineColorItem() {}
-			XLineColorItem(long nIndex, const Color& rTheColor);
+			XLineColorItem(INT32 nIndex, const Color& rTheColor);
 			XLineColorItem(const String& rName, const Color& rTheColor);
 			XLineColorItem(SvStream& rIn);
 

svx/inc/svx/xlndsit.hxx

 public:
 							TYPEINFO();
 							XLineDashItem() : NameOrIndex(XATTR_LINEDASH, -1) {}
-							XLineDashItem(long nIndex, const XDash& rTheDash);
+							XLineDashItem(INT32 nIndex, const XDash& rTheDash);
 							XLineDashItem(const String& rName, const XDash& rTheDash);
 							XLineDashItem(SfxItemPool* pPool, const XDash& rTheDash);
 							XLineDashItem(SfxItemPool* pPool );

svx/inc/svx/xlnedit.hxx

 
 public:
 			TYPEINFO();
-			XLineEndItem(long nIndex = -1);
+			XLineEndItem(INT32 nIndex = -1);
 			XLineEndItem(const String& rName, const basegfx::B2DPolyPolygon& rPolyPolygon);
 			XLineEndItem(SfxItemPool* pPool, const basegfx::B2DPolyPolygon& rPolyPolygon);
 			XLineEndItem(SfxItemPool* pPool );

svx/inc/svx/xlnstit.hxx

 
 public:
 			TYPEINFO();
-			XLineStartItem(long nIndex = -1);
+			XLineStartItem(INT32 nIndex = -1);
 			XLineStartItem(const String& rName, const basegfx::B2DPolyPolygon& rPolyPolygon);
 			XLineStartItem(SfxItemPool* pPool, const basegfx::B2DPolyPolygon& rPolyPolygon);
 			XLineStartItem(SfxItemPool* pPool );

svx/inc/svx/xsflclit.hxx

 public:
 			TYPEINFO();
 			XSecondaryFillColorItem() {}
-			XSecondaryFillColorItem(long nIndex, const Color& rTheColor);
+			XSecondaryFillColorItem(INT32 nIndex, const Color& rTheColor);
 			XSecondaryFillColorItem(const String& rName, const Color& rTheColor);
 			XSecondaryFillColorItem(SvStream& rIn);
 

svx/source/dialog/dlgctrl.cxx

 	pBitmap = new Bitmap( SVX_RES( RID_SVXCTRL_RECTBTNS ) );
 
 	// set bitmap-colors
-	long	aTempAry1[(7*sizeof(Color))/sizeof(long)];
-	long	aTempAry2[(7*sizeof(Color))/sizeof(long)];
-	Color*	pColorAry1 = (Color*)aTempAry1;
-	Color*	pColorAry2 = (Color*)aTempAry2;
-	pColorAry1[0] = Color( 0xC0, 0xC0, 0xC0 );	// light-gray
-	pColorAry1[1] = Color( 0xFF, 0xFF, 0x00 );	// yellow
-	pColorAry1[2] = Color( 0xFF, 0xFF, 0xFF );	// white
-	pColorAry1[3] = Color( 0x80, 0x80, 0x80 );	// dark-gray
-	pColorAry1[4] = Color( 0x00, 0x00, 0x00 );  // black
-	pColorAry1[5] = Color( 0x00, 0xFF, 0x00 );	// green
-	pColorAry1[6] = Color( 0x00, 0x00, 0xFF );	// blue
-	pColorAry2[0] = rStyles.GetDialogColor();		// background
-	pColorAry2[1] = rStyles.GetWindowColor();
-	pColorAry2[2] = rStyles.GetLightColor();
-	pColorAry2[3] = rStyles.GetShadowColor();
-	pColorAry2[4] = rStyles.GetDarkShadowColor();
-	pColorAry2[5] = Color( aColorConfig.GetColorValue( svtools::FONTCOLOR ).nColor );
-	pColorAry2[6] = rStyles.GetDialogColor();
+	Color	aColorAry1[7];
+	Color	aColorAry2[7];
+	aColorAry1[0] = Color( 0xC0, 0xC0, 0xC0 );	// light-gray
+	aColorAry1[1] = Color( 0xFF, 0xFF, 0x00 );	// yellow
+	aColorAry1[2] = Color( 0xFF, 0xFF, 0xFF );	// white
+	aColorAry1[3] = Color( 0x80, 0x80, 0x80 );	// dark-gray
+	aColorAry1[4] = Color( 0x00, 0x00, 0x00 );  // black
+	aColorAry1[5] = Color( 0x00, 0xFF, 0x00 );	// green
+	aColorAry1[6] = Color( 0x00, 0x00, 0xFF );	// blue
+	aColorAry2[0] = rStyles.GetDialogColor();		// background
+	aColorAry2[1] = rStyles.GetWindowColor();
+	aColorAry2[2] = rStyles.GetLightColor();
+	aColorAry2[3] = rStyles.GetShadowColor();
+	aColorAry2[4] = rStyles.GetDarkShadowColor();
+	aColorAry2[5] = Color( aColorConfig.GetColorValue( svtools::FONTCOLOR ).nColor );
+	aColorAry2[6] = rStyles.GetDialogColor();
 
 #ifdef DBG_UTIL
 	static BOOL		bModify = FALSE;
 		UINT8&			rr = r;
 		UINT8&			rg = g;
 		UINT8&			rb = b;
-		pColorAry2[ rn ] = Color( rr, rg, rb );
+		aColorAry2[ rn ] = Color( rr, rg, rb );
 	}
 #endif
 
-	pBitmap->Replace( pColorAry1, pColorAry2, 7, NULL );
+	pBitmap->Replace( aColorAry1, aColorAry2, 7, NULL );
 }
 
 // -----------------------------------------------------------------------

svx/source/xoutdev/xattr.cxx

 #include <basegfx/point/b2dpoint.hxx>
 #include <basegfx/vector/b2dvector.hxx>
 
+#include <stdio.h>
+
 using namespace ::rtl;
 using namespace ::com::sun::star;
 
 
 /*************************************************************************
 |*
-|*	  NameOrIndex::NameOrIndex(USHORT nWhich, long nIndex)
+|*	  NameOrIndex::NameOrIndex(USHORT nWhich, INT32 nIndex)
 |*
 |*	  Beschreibung
 |*	  Ersterstellung	14.11.94
 |*
 *************************************************************************/
 
-NameOrIndex::NameOrIndex(USHORT _nWhich, long nIndex) :
+NameOrIndex::NameOrIndex(USHORT _nWhich, INT32 nIndex) :
 	SfxStringItem(_nWhich, aNameOrIndexEmptyString),
 	nPalIndex(nIndex)
 {
 
 NameOrIndex::NameOrIndex(USHORT _nWhich, const XubString& rName) :
 	SfxStringItem(_nWhich, rName),
-	nPalIndex((long)-1)
+	nPalIndex(-1)
 {
 }
 
 SvStream& NameOrIndex::Store( SvStream& rOut, USHORT nItemVersion ) const
 {
 	SfxStringItem::Store( rOut, nItemVersion );
-	rOut << (INT32)nPalIndex;
+	rOut << nPalIndex;
 	return rOut;
 }
 
 
 /*************************************************************************
 |*
-|*	  XColorItem::XColorItem(USHORT nWhich, long nIndex, const Color& rTheColor)
+|*	  XColorItem::XColorItem(USHORT nWhich, INT32 nIndex, const Color& rTheColor)
 |*
 \************************************************************************/
 
-XColorItem::XColorItem(USHORT _nWhich, long nIndex, const Color& rTheColor) :
+XColorItem::XColorItem(USHORT _nWhich, INT32 nIndex, const Color& rTheColor) :
 	NameOrIndex(_nWhich, nIndex),
 	aColor(rTheColor)
 {
 
 /*************************************************************************
 |*
-|*	  XLineDashItem::XLineDashItem(long nIndex, const XDash& rTheDash)
+|*	  XLineDashItem::XLineDashItem(INT32 nIndex, const XDash& rTheDash)
 |*
 |*	  Beschreibung
 |*	  Ersterstellung	15.11.94
 |*
 *************************************************************************/
 
-XLineDashItem::XLineDashItem(long nIndex, const XDash& rTheDash) :
+XLineDashItem::XLineDashItem(INT32 nIndex, const XDash& rTheDash) :
 	NameOrIndex(XATTR_LINEDASH, nIndex),
 	aDash(rTheDash)
 {
 
 /*************************************************************************
 |*
-|*	  XLineColorItem::XLineColorItem(long nIndex, const Color& rTheColor)
+|*	  XLineColorItem::XLineColorItem(INT32 nIndex, const Color& rTheColor)
 |*
 |*	  Beschreibung
 |*	  Ersterstellung	15.11.94
 |*
 *************************************************************************/
 
-XLineColorItem::XLineColorItem(long nIndex, const Color& rTheColor) :
+XLineColorItem::XLineColorItem(INT32 nIndex, const Color& rTheColor) :
 	XColorItem(XATTR_LINECOLOR, nIndex, rTheColor)
 {
 }
 
 /*************************************************************************
 |*
-|*	  XLineStartItem::XLineStartItem(long nIndex)
+|*	  XLineStartItem::XLineStartItem(INT32 nIndex)
 |*
 |*	  Beschreibung
 |*	  Ersterstellung	15.11.94
 |*
 *************************************************************************/
 
-XLineStartItem::XLineStartItem(long nIndex) 
+XLineStartItem::XLineStartItem(INT32 nIndex) 
 :	NameOrIndex(XATTR_LINESTART, nIndex)
 {
 }
 
 /*************************************************************************
 |*
-|*	  XLineEndItem::XLineEndItem(long nIndex)
+|*	  XLineEndItem::XLineEndItem(INT32 nIndex)
 |*
 |*	  Beschreibung
 |*	  Ersterstellung	15.11.94
 |*
 *************************************************************************/
 
-XLineEndItem::XLineEndItem(long nIndex) 
+XLineEndItem::XLineEndItem(INT32 nIndex) 
 :	NameOrIndex(XATTR_LINEEND, nIndex)
 {
 }
 
 /*************************************************************************
 |*
-|*	  XLineStartWidthItem::XLineStartWidthItem(long nWidth)
+|*	  XLineStartWidthItem::XLineStartWidthItem(INT32 nWidth)
 |*
 |*	  Beschreibung
 |*	  Ersterstellung	15.11.94
 
 /*************************************************************************
 |*
-|*	  XFillColorItem::XFillColorItem(long nIndex, const Color& rTheColor)
+|*	  XFillColorItem::XFillColorItem(INT32 nIndex, const Color& rTheColor)
 |*
 |*	  Beschreibung
 |*	  Ersterstellung	15.11.94
 |*
 *************************************************************************/
 
-XFillColorItem::XFillColorItem(long nIndex, const Color& rTheColor) :
+XFillColorItem::XFillColorItem(INT32 nIndex, const Color& rTheColor) :
 	XColorItem(XATTR_FILLCOLOR, nIndex, rTheColor)
 {
 }
 // -----------------------------
 TYPEINIT1_AUTOFACTORY(XSecondaryFillColorItem, XColorItem);
 
-XSecondaryFillColorItem::XSecondaryFillColorItem(long nIndex, const Color& rTheColor) :
+XSecondaryFillColorItem::XSecondaryFillColorItem(INT32 nIndex, const Color& rTheColor) :
 	XColorItem(XATTR_SECONDARYFILLCOLOR, nIndex, rTheColor)
 {
 }
 
 /*************************************************************************
 |*
-|*	  XFillGradientItem::XFillGradientItem(long nIndex,
+|*	  XFillGradientItem::XFillGradientItem(INT32 nIndex,
 |*										 const XGradient& rTheGradient)
 |*
 |*	  Beschreibung
 |*
 *************************************************************************/
 
-XFillGradientItem::XFillGradientItem(long nIndex,
+XFillGradientItem::XFillGradientItem(INT32 nIndex,
 								   const XGradient& rTheGradient) :
 	NameOrIndex(XATTR_FILLGRADIENT, nIndex),
 	aGradient(rTheGradient)
 
 //------------------------------------------------------------------------
 
-XFillFloatTransparenceItem::XFillFloatTransparenceItem( long nIndex, const XGradient& rGradient, BOOL bEnable ) :
+XFillFloatTransparenceItem::XFillFloatTransparenceItem( INT32 nIndex, const XGradient& rGradient, BOOL bEnable ) :
 	XFillGradientItem	( nIndex, rGradient ),
 	bEnabled			( bEnable )
 {
 
 /*************************************************************************
 |*
-|*	  XFillHatchItem::XFillHatchItem(long nIndex,
+|*	  XFillHatchItem::XFillHatchItem(INT32 nIndex,
 |*								   const XHatch& rTheHatch)
 |*
 |*	  Beschreibung
 |*
 *************************************************************************/
 
-XFillHatchItem::XFillHatchItem(long nIndex,
+XFillHatchItem::XFillHatchItem(INT32 nIndex,
 							 const XHatch& rTheHatch) :
 	NameOrIndex(XATTR_FILLHATCH, nIndex),
 	aHatch(rTheHatch)
 |*
 *************************************************************************/
 
-XFormTextShadowColorItem::XFormTextShadowColorItem(long nIndex,
+XFormTextShadowColorItem::XFormTextShadowColorItem(INT32 nIndex,
 													 const Color& rTheColor) :
 	XColorItem(XATTR_FORMTXTSHDWCOLOR, nIndex, rTheColor)
 {

sw/source/core/draw/dpage.cxx

 					aPt -= pFly->Frm().Pos();
 					// ohne MapMode-Offset !!!!!
 					// ohne MapMode-Offset, ohne Offset, o ... !!!!!
-					aPt = (Point&)(const Size&)pWindow->LogicToPixel(
-							(const Size&)aPt, MapMode( MAP_TWIP ) );
+					aPt = pWindow->LogicToPixel(
+							aPt, MapMode( MAP_TWIP ) );
 					((( sTxt += '?' ) += String::CreateFromInt32( aPt.X() ))
 							 += ',' ) += String::CreateFromInt32( aPt.Y() );
 				}

sw/source/core/frmedt/fefly1.cxx

 						Point aPt( rPt );
 						aPt -= pFly->Frm().Pos();
 						// ohne MapMode-Offset, ohne Offset, o ... !!!!!
-						aPt = (Point&)(const Size&)GetOut()->LogicToPixel(
-								(const Size&)aPt, MapMode( MAP_TWIP ) );
+						aPt = GetOut()->LogicToPixel(
+								aPt, MapMode( MAP_TWIP ) );
 						((( *pURL += '?' ) += String::CreateFromInt32( aPt.X() ))
 								  += ',' ) += String::CreateFromInt32(aPt.Y() );
 					}

sw/source/core/view/vprint.cxx

     // Wir bauen uns ein neues Dokument
     SwDoc *pPrtDoc = new SwDoc;
     pPrtDoc->acquire();
-    pPrtDoc->SetRefForDocShell( (SfxObjectShellRef*)&(long&)rDocShellRef );
+    pPrtDoc->SetRefForDocShell( boost::addressof(rDocShellRef) );
     pPrtDoc->LockExpFlds();
 
     // Der Drucker wird uebernommen
     // Wir bauen uns ein neues Dokument
 //    SwDoc *pPrtDoc = new SwDoc;
 //    pPrtDoc->acquire();
-//    pPrtDoc->SetRefForDocShell( (SvEmbeddedObjectRef*)&(long&)rDocShellRef );
+//    pPrtDoc->SetRefForDocShell( boost::addressof(rDocShellRef) );
     pPrtDoc->LockExpFlds();
 
     // Der Drucker wird uebernommen

sw/source/ui/dochdl/swdtflvr.cxx

 		pClpDocFac = new SwDocFac;
 		SwDoc* pTmpDoc = pClpDocFac->GetDoc();
 
-        pTmpDoc->SetRefForDocShell( (SfxObjectShellRef*)&(long&)aDocShellRef );
+        pTmpDoc->SetRefForDocShell( boost::addressof(aDocShellRef) );
 		pTmpDoc->LockExpFlds(); 	// nie die Felder updaten - Text so belassen
 		pWrtShell->Copy( pTmpDoc );
 
 		SwDoc* pTmpDoc = pClpDocFac->GetDoc();
         pTmpDoc->SetClipBoard( true );
 
-        pTmpDoc->SetRefForDocShell( (SfxObjectShellRef*)&(long&)aDocShellRef );
+        pTmpDoc->SetRefForDocShell( boost::addressof(aDocShellRef) );
 		pTmpDoc->LockExpFlds(); 	// nie die Felder updaten - Text so belassen
 		pWrtShell->Copy( pTmpDoc );
 
 	SwCntntNode* pCNd = rNds.GoNext( &aNodeIdx ); // gehe zum 1. ContentNode
 	SwPaM aPam( *pCNd );
 
-    pCDoc->SetRefForDocShell( (SfxObjectShellRef*)&(long&)aDocShellRef );
+    pCDoc->SetRefForDocShell( boost::addressof(aDocShellRef) );
 	pCDoc->LockExpFlds(); 	// nie die Felder updaten - Text so belassen
 
 	pCDoc->InsertGlossary( rGlossary, rStr, aPam, 0 );

sw/source/ui/inc/uivwimp.hxx

 
     SfxObjectShellRef &             GetTmpSelectionDoc()    { return xTmpSelDocSh; }
 
-    SfxObjectShellRef&              GetEmbeddedObjRef()     { return (SfxObjectShellRef&)(long&)aEmbeddedObjRef; }
+    SfxObjectShellRef&              GetEmbeddedObjRef()     { return *boost::addressof(aEmbeddedObjRef); }
 
     void                            AddTransferable(SwTransferable& rTransferable);
 

vcl/source/glyphs/gcach_ftyp.cxx

 // -----------------------------------------------------------------------
 
 int FreetypeServerFont::ApplyGlyphTransform( int nGlyphFlags,
-    FT_GlyphRec_* pGlyphFT, bool bForBitmapProcessing ) const
+    FT_Glyph pGlyphFT, bool bForBitmapProcessing ) const
 {
     int nAngle = GetFontSelData().mnOrientation;
     // shortcut most common case
     else
     {
         // FT<=2005 ignores transforms for bitmaps, so do it manually
-        FT_BitmapGlyph& rBmpGlyphFT = reinterpret_cast<FT_BitmapGlyph&>(pGlyphFT);
-        rBmpGlyphFT->left += (aVector.x + 32) >> 6;
-        rBmpGlyphFT->top  += (aVector.y + 32) >> 6;
+        FT_BitmapGlyph pBmpGlyphFT = reinterpret_cast<FT_BitmapGlyph>(pGlyphFT);
+        pBmpGlyphFT->left += (aVector.x + 32) >> 6;
+        pBmpGlyphFT->top  += (aVector.y + 32) >> 6;
     }
 
     return nAngle;
         }
     }
 
-    const FT_BitmapGlyph& rBmpGlyphFT = reinterpret_cast<const FT_BitmapGlyph&>(pGlyphFT);
+    const FT_BitmapGlyph pBmpGlyphFT = reinterpret_cast<const FT_BitmapGlyph>(pGlyphFT);
     // NOTE: autohinting in FT<=2.0.2 miscalculates the offsets below by +-1
-    rRawBitmap.mnXOffset        = +rBmpGlyphFT->left;
-    rRawBitmap.mnYOffset        = -rBmpGlyphFT->top;
+    rRawBitmap.mnXOffset        = +pBmpGlyphFT->left;
+    rRawBitmap.mnYOffset        = -pBmpGlyphFT->top;
 
-    const FT_Bitmap& rBitmapFT  = rBmpGlyphFT->bitmap;
+    const FT_Bitmap& rBitmapFT  = pBmpGlyphFT->bitmap;
     rRawBitmap.mnHeight         = rBitmapFT.rows;
     rRawBitmap.mnBitCount       = 1;
     if( mbArtBold && !pFTEmbolden )
         }
     }
 
-    const FT_BitmapGlyph& rBmpGlyphFT = reinterpret_cast<const FT_BitmapGlyph&>(pGlyphFT);
-    rRawBitmap.mnXOffset        = +rBmpGlyphFT->left;
-    rRawBitmap.mnYOffset        = -rBmpGlyphFT->top;
+    const FT_BitmapGlyph pBmpGlyphFT = reinterpret_cast<const FT_BitmapGlyph>(pGlyphFT);
+    rRawBitmap.mnXOffset        = +pBmpGlyphFT->left;
+    rRawBitmap.mnYOffset        = -pBmpGlyphFT->top;
 
-    const FT_Bitmap& rBitmapFT  = rBmpGlyphFT->bitmap;
+    const FT_Bitmap& rBitmapFT  = pBmpGlyphFT->bitmap;
     rRawBitmap.mnHeight         = rBitmapFT.rows;
     rRawBitmap.mnWidth          = rBitmapFT.width;
     rRawBitmap.mnBitCount       = 8;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.