diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/unx/fontmanager.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/unx/salbmp.h | 1 | ||||
-rw-r--r-- | vcl/source/fontsubset/cff.cxx | 3 | ||||
-rw-r--r-- | vcl/source/fontsubset/sft.cxx | 5 | ||||
-rw-r--r-- | vcl/source/outdev/map.cxx | 29 | ||||
-rw-r--r-- | vcl/source/outdev/outdev.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/generic/dtrans/X11_clipboard.cxx | 33 | ||||
-rw-r--r-- | vcl/unx/generic/dtrans/X11_clipboard.hxx | 3 | ||||
-rw-r--r-- | vcl/unx/generic/dtrans/X11_dndcontext.cxx | 25 | ||||
-rw-r--r-- | vcl/unx/generic/dtrans/X11_dndcontext.hxx | 16 | ||||
-rw-r--r-- | vcl/unx/generic/fontmanager/fontmanager.cxx | 6 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/gdiimpl.cxx | 6 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/gdiimpl.hxx | 1 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/salbmp.cxx | 8 | ||||
-rw-r--r-- | vcl/unx/generic/printer/ppdparser.cxx | 3 |
15 files changed, 38 insertions, 107 deletions
diff --git a/vcl/inc/unx/fontmanager.hxx b/vcl/inc/unx/fontmanager.hxx index b4af653960f00..1c3114e43bbcd 100644 --- a/vcl/inc/unx/fontmanager.hxx +++ b/vcl/inc/unx/fontmanager.hxx @@ -130,8 +130,6 @@ class VCL_PLUGIN_PUBLIC PrintFontManager FontWeight m_eWeight; FontPitch m_ePitch; rtl_TextEncoding m_aEncoding; - CharacterMetric m_aGlobalMetricX; - CharacterMetric m_aGlobalMetricY; int m_nAscend; int m_nDescend; int m_nLeading; diff --git a/vcl/inc/unx/salbmp.h b/vcl/inc/unx/salbmp.h index 1a4c9d0155688..5165fa6bb0aba 100644 --- a/vcl/inc/unx/salbmp.h +++ b/vcl/inc/unx/salbmp.h @@ -221,7 +221,6 @@ private: typedef ::std::list< ImplBmpObj* > BmpList_impl; BmpList_impl maBmpList; - sal_uIntPtr mnTotalSize; public: diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx index d996ce7a1bcbb..29e7cf7351c01 100644 --- a/vcl/source/fontsubset/cff.cxx +++ b/vcl/source/fontsubset/cff.cxx @@ -237,7 +237,6 @@ struct CffLocal int mnPrivDictSize; int mnLocalSubrOffs; int mnLocalSubrBase; - int mnLocalSubrCount; int mnLocalSubrBias; ValType maNominalWidth; @@ -1285,7 +1284,6 @@ CffLocal::CffLocal() , mnPrivDictSize( 0) , mnLocalSubrOffs( 0) , mnLocalSubrBase( 0) -, mnLocalSubrCount( 0) , mnLocalSubrBias( 0) , maNominalWidth( 0) , maDefaultWidth( 0) @@ -1412,7 +1410,6 @@ bool CffSubsetterContext::initialCffRead() mpCffLocal->mnLocalSubrBase = mpCffLocal->mnPrivDictBase + mpCffLocal->mnLocalSubrOffs; mpReadPtr = mpBasePtr + mpCffLocal->mnLocalSubrBase; const int nSubrCount = (mpReadPtr[0] << 8) + mpReadPtr[1]; - mpCffLocal->mnLocalSubrCount = nSubrCount; mpCffLocal->mnLocalSubrBias = (nSubrCount<1240)?107:(nSubrCount<33900)?1131:32768; // seekIndexEnd( mpCffLocal->mnLocalSubrBase); } diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index d0a891b56a5ba..e66716edf6520 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -86,7 +86,6 @@ typedef struct { sal_uInt16 aw; /*- Advance Width (horizontal writing mode) */ sal_Int16 lsb; /*- Left sidebearing (horizontal writing mode) */ sal_uInt16 ah; /*- advance height (vertical writing mode) */ - sal_Int16 tsb; /*- top sidebearing (vertical writing mode) */ } TTGlyphMetrics; #define HFORMAT_LINELEN 64 @@ -343,7 +342,7 @@ static void GetMetrics(TrueTypeFont *ttf, sal_uInt32 glyphID, TTGlyphMetrics *me { const sal_uInt8* table = getTable( ttf, O_hmtx ); - metrics->aw = metrics->lsb = metrics->ah = metrics->tsb = 0; + metrics->aw = metrics->lsb = metrics->ah = 0; if (!table || !ttf->numberOfHMetrics) return; if (glyphID < ttf->numberOfHMetrics) { @@ -360,10 +359,8 @@ static void GetMetrics(TrueTypeFont *ttf, sal_uInt32 glyphID, TTGlyphMetrics *me if (glyphID < ttf->numOfLongVerMetrics) { metrics->ah = GetUInt16(table, 4 * glyphID); - metrics->tsb = GetInt16(table, 4 * glyphID + 2); } else { metrics->ah = GetUInt16(table, 4 * (ttf->numOfLongVerMetrics - 1)); - metrics->tsb = GetInt16(table + ttf->numOfLongVerMetrics * 4, (glyphID - ttf->numOfLongVerMetrics) * 2); } } diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx index f371167486037..f7d82ac491349 100644 --- a/vcl/source/outdev/map.cxx +++ b/vcl/source/outdev/map.cxx @@ -145,8 +145,6 @@ static void ImplCalcBigIntThreshold( long nDPIX, long nDPIY, static void ImplCalcMapResolution( const MapMode& rMapMode, long nDPIX, long nDPIY, ImplMapRes& rMapRes ) { - rMapRes.mfScaleX = 1.0; - rMapRes.mfScaleY = 1.0; switch ( rMapMode.GetMapUnit() ) { case MapUnit::MapRelative: @@ -251,20 +249,12 @@ static void ImplCalcMapResolution( const MapMode& rMapMode, { rMapRes.mnMapOfsX = aOrigin.X(); rMapRes.mnMapOfsY = aOrigin.Y(); - rMapRes.mfOffsetX = aOrigin.X(); - rMapRes.mfOffsetY = aOrigin.Y(); } else { auto nXNumerator = aScaleX.GetNumerator(); auto nYNumerator = aScaleY.GetNumerator(); assert(nXNumerator != 0 && nYNumerator != 0); - rMapRes.mfOffsetX *= aScaleX.GetDenominator(); - rMapRes.mfOffsetX /= nXNumerator; - rMapRes.mfOffsetX += aOrigin.X(); - rMapRes.mfOffsetY *= aScaleY.GetDenominator(); - rMapRes.mfOffsetY /= nYNumerator; - rMapRes.mfOffsetY += aOrigin.Y(); BigInt aX( rMapRes.mnMapOfsX ); aX *= BigInt( aScaleX.GetDenominator() ); @@ -304,11 +294,6 @@ static void ImplCalcMapResolution( const MapMode& rMapMode, rMapRes.mnMapOfsY = (long)aY + aOrigin.Y(); } - rMapRes.mfScaleX *= (double)rMapRes.mnMapScNumX * (double)aScaleX.GetNumerator() / - ((double)rMapRes.mnMapScDenomX * (double)aScaleX.GetDenominator()); - rMapRes.mfScaleY *= (double)rMapRes.mnMapScNumY * (double)aScaleY.GetNumerator() / - ((double)rMapRes.mnMapScDenomY * (double)aScaleY.GetDenominator()); - // calculate scaling factor according to MapMode // aTemp? = rMapRes.mnMapSc? * aScale? Fraction aTempX = ImplMakeFraction( rMapRes.mnMapScNumX, @@ -729,8 +714,6 @@ void OutputDevice::SetMapMode( const MapMode& rNewMapMode ) Point aOrigin = rNewMapMode.GetOrigin(); maMapRes.mnMapOfsX = aOrigin.X(); maMapRes.mnMapOfsY = aOrigin.Y(); - maMapRes.mfOffsetX = aOrigin.X(); - maMapRes.mfOffsetY = aOrigin.Y(); maMapMode = rNewMapMode; // #i75163# @@ -746,10 +729,6 @@ void OutputDevice::SetMapMode( const MapMode& rNewMapMode ) maMapRes.mnMapScDenomY = mnDPIY; maMapRes.mnMapOfsX = 0; maMapRes.mnMapOfsY = 0; - maMapRes.mfOffsetX = 0.0; - maMapRes.mfOffsetY = 0.0; - maMapRes.mfScaleX = (double)1/(double)mnDPIX; - maMapRes.mfScaleY = (double)1/(double)mnDPIY; } // calculate new MapMode-resolution @@ -1474,10 +1453,6 @@ basegfx::B2DPolyPolygon OutputDevice::PixelToLogic( const basegfx::B2DPolyPolygo aMapResSource.mnMapScNumY = 1; \ aMapResSource.mnMapScDenomX = 1; \ aMapResSource.mnMapScDenomY = 1; \ - aMapResSource.mfOffsetX = 0.0; \ - aMapResSource.mfOffsetY = 0.0; \ - aMapResSource.mfScaleX = 1.0; \ - aMapResSource.mfScaleY = 1.0; \ ImplMapRes aMapResDest(aMapResSource); \ \ if ( !mbMap || pMapModeSource != &maMapMode ) \ @@ -1542,10 +1517,6 @@ static void verifyUnitSourceDest( MapUnit eUnitSource, MapUnit eUnitDest ) aMapResSource.mnMapScNumY = 1; \ aMapResSource.mnMapScDenomX = 1; \ aMapResSource.mnMapScDenomY = 1; \ - aMapResSource.mfOffsetX = 0.0; \ - aMapResSource.mfOffsetY = 0.0; \ - aMapResSource.mfScaleX = 1.0; \ - aMapResSource.mfScaleY = 1.0; \ ImplMapRes aMapResDest(aMapResSource); \ \ ImplCalcMapResolution( rMapModeSource, 72, 72, aMapResSource ); \ diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx index 8244f0b338f1d..df1c7ee8c3807 100644 --- a/vcl/source/outdev/outdev.cxx +++ b/vcl/source/outdev/outdev.cxx @@ -117,10 +117,6 @@ OutputDevice::OutputDevice() : maMapRes.mnMapScNumY = 1; maMapRes.mnMapScDenomX = 1; maMapRes.mnMapScDenomY = 1; - maMapRes.mfOffsetX = 0.0; - maMapRes.mfOffsetY = 0.0; - maMapRes.mfScaleX = 1.0; - maMapRes.mfScaleY = 1.0; // struct ImplThresholdRes maThresRes.mnThresLogToPixX = 0; maThresRes.mnThresLogToPixY = 0; diff --git a/vcl/unx/generic/dtrans/X11_clipboard.cxx b/vcl/unx/generic/dtrans/X11_clipboard.cxx index 6f9e4de038566..019ca2959f97d 100644 --- a/vcl/unx/generic/dtrans/X11_clipboard.cxx +++ b/vcl/unx/generic/dtrans/X11_clipboard.cxx @@ -51,8 +51,7 @@ X11Clipboard::X11Clipboard( SelectionManager& rManager, Atom aSelection ) : css::lang::XServiceInfo >( rManager.getMutex() ), - m_rSelectionManager( rManager ), - m_xSelectionManager( & rManager ), + m_xSelectionManager( &rManager ), m_aSelection( aSelection ) { #if OSL_DEBUG_LEVEL > 1 @@ -81,23 +80,23 @@ X11Clipboard::~X11Clipboard() MutexGuard aGuard( *Mutex::getGlobalMutex() ); #if OSL_DEBUG_LEVEL > 1 - fprintf( stderr, "shutting down instance of X11Clipboard (this=%p, Selection=\"%s\")\n", this, OUStringToOString( m_rSelectionManager.getString( m_aSelection ), RTL_TEXTENCODING_ISO_8859_1 ).getStr() ); + fprintf( stderr, "shutting down instance of X11Clipboard (this=%p, Selection=\"%s\")\n", this, OUStringToOString( m_xSelectionManager->getString( m_aSelection ), RTL_TEXTENCODING_ISO_8859_1 ).getStr() ); #endif if( m_aSelection != None ) - m_rSelectionManager.deregisterHandler( m_aSelection ); + m_xSelectionManager->deregisterHandler( m_aSelection ); else { - m_rSelectionManager.deregisterHandler( XA_PRIMARY ); - m_rSelectionManager.deregisterHandler( m_rSelectionManager.getAtom( "CLIPBOARD" ) ); + m_xSelectionManager->deregisterHandler( XA_PRIMARY ); + m_xSelectionManager->deregisterHandler( m_xSelectionManager->getAtom( "CLIPBOARD" ) ); } } void X11Clipboard::fireChangedContentsEvent() { - ClearableMutexGuard aGuard( m_rSelectionManager.getMutex() ); + ClearableMutexGuard aGuard( m_xSelectionManager->getMutex() ); #if OSL_DEBUG_LEVEL > 1 fprintf( stderr, "X11Clipboard::fireChangedContentsEvent for %s (%" SAL_PRI_SIZET "u listeners)\n", - OUStringToOString( m_rSelectionManager.getString( m_aSelection ), RTL_TEXTENCODING_ISO_8859_1 ).getStr(), m_aListeners.size() ); + OUStringToOString( m_xSelectionManager->getString( m_aSelection ), RTL_TEXTENCODING_ISO_8859_1 ).getStr(), m_aListeners.size() ); #endif ::std::list< Reference< XClipboardListener > > listeners( m_aListeners ); aGuard.clear(); @@ -113,7 +112,7 @@ void X11Clipboard::fireChangedContentsEvent() void X11Clipboard::clearContents() { - ClearableMutexGuard aGuard(m_rSelectionManager.getMutex()); + ClearableMutexGuard aGuard(m_xSelectionManager->getMutex()); // protect against deletion during outside call Reference< XClipboard > xThis( static_cast<XClipboard*>(this)); // copy member references on stack so they can be called @@ -134,7 +133,7 @@ void X11Clipboard::clearContents() Reference< XTransferable > SAL_CALL X11Clipboard::getContents() { - MutexGuard aGuard(m_rSelectionManager.getMutex()); + MutexGuard aGuard(m_xSelectionManager->getMutex()); if( ! m_aContents.is() ) m_aContents = new X11Transferable( SelectionManager::get(), m_aSelection ); @@ -146,7 +145,7 @@ void SAL_CALL X11Clipboard::setContents( const Reference< XClipboardOwner >& xClipboardOwner ) { // remember old values for callbacks before setting the new ones. - ClearableMutexGuard aGuard(m_rSelectionManager.getMutex()); + ClearableMutexGuard aGuard(m_xSelectionManager->getMutex()); Reference< XClipboardOwner > oldOwner( m_aOwner ); m_aOwner = xClipboardOwner; @@ -158,11 +157,11 @@ void SAL_CALL X11Clipboard::setContents( // for now request ownership for both selections if( m_aSelection != None ) - m_rSelectionManager.requestOwnership( m_aSelection ); + m_xSelectionManager->requestOwnership( m_aSelection ); else { - m_rSelectionManager.requestOwnership( XA_PRIMARY ); - m_rSelectionManager.requestOwnership( m_rSelectionManager.getAtom( "CLIPBOARD" ) ); + m_xSelectionManager->requestOwnership( XA_PRIMARY ); + m_xSelectionManager->requestOwnership( m_xSelectionManager->getAtom( "CLIPBOARD" ) ); } // notify old owner on loss of ownership @@ -175,7 +174,7 @@ void SAL_CALL X11Clipboard::setContents( OUString SAL_CALL X11Clipboard::getName() { - return m_rSelectionManager.getString( m_aSelection ); + return m_xSelectionManager->getString( m_aSelection ); } sal_Int8 SAL_CALL X11Clipboard::getRenderingCapabilities() @@ -185,13 +184,13 @@ sal_Int8 SAL_CALL X11Clipboard::getRenderingCapabilities() void SAL_CALL X11Clipboard::addClipboardListener( const Reference< XClipboardListener >& listener ) { - MutexGuard aGuard( m_rSelectionManager.getMutex() ); + MutexGuard aGuard( m_xSelectionManager->getMutex() ); m_aListeners.push_back( listener ); } void SAL_CALL X11Clipboard::removeClipboardListener( const Reference< XClipboardListener >& listener ) { - MutexGuard aGuard( m_rSelectionManager.getMutex() ); + MutexGuard aGuard( m_xSelectionManager->getMutex() ); m_aListeners.remove( listener ); } diff --git a/vcl/unx/generic/dtrans/X11_clipboard.hxx b/vcl/unx/generic/dtrans/X11_clipboard.hxx index c9a948cefd99a..8c7773fd02e2a 100644 --- a/vcl/unx/generic/dtrans/X11_clipboard.hxx +++ b/vcl/unx/generic/dtrans/X11_clipboard.hxx @@ -41,8 +41,7 @@ namespace x11 { css::uno::Reference< css::datatransfer::XTransferable > m_aContents; css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner > m_aOwner; - SelectionManager& m_rSelectionManager; - css::uno::Reference< css::lang::XInitialization > m_xSelectionManager; + rtl::Reference<SelectionManager> m_xSelectionManager; ::std::list< css::uno::Reference< css::datatransfer::clipboard::XClipboardListener > > m_aListeners; Atom m_aSelection; diff --git a/vcl/unx/generic/dtrans/X11_dndcontext.cxx b/vcl/unx/generic/dtrans/X11_dndcontext.cxx index 82d3290a4469c..4223b29f4c379 100644 --- a/vcl/unx/generic/dtrans/X11_dndcontext.cxx +++ b/vcl/unx/generic/dtrans/X11_dndcontext.cxx @@ -31,8 +31,7 @@ DropTargetDropContext::DropTargetDropContext( ::Window aDropWindow, SelectionManager& rManager ) : m_aDropWindow( aDropWindow ), - m_rManager( rManager ), - m_xManagerRef( static_cast< OWeakObject* >(&rManager) ) + m_xManager( &rManager ) { } @@ -42,17 +41,17 @@ DropTargetDropContext::~DropTargetDropContext() void DropTargetDropContext::acceptDrop( sal_Int8 dragOperation ) { - m_rManager.accept( dragOperation, m_aDropWindow ); + m_xManager->accept( dragOperation, m_aDropWindow ); } void DropTargetDropContext::rejectDrop() { - m_rManager.reject( m_aDropWindow ); + m_xManager->reject( m_aDropWindow ); } void DropTargetDropContext::dropComplete( sal_Bool success ) { - m_rManager.dropComplete( success, m_aDropWindow ); + m_xManager->dropComplete( success, m_aDropWindow ); } /* @@ -63,8 +62,7 @@ DropTargetDragContext::DropTargetDragContext( ::Window aDropWindow, SelectionManager& rManager ) : m_aDropWindow( aDropWindow ), - m_rManager( rManager ), - m_xManagerRef( static_cast< OWeakObject* >(&rManager) ) + m_xManager( &rManager ) { } @@ -74,12 +72,12 @@ DropTargetDragContext::~DropTargetDragContext() void DropTargetDragContext::acceptDrag( sal_Int8 dragOperation ) { - m_rManager.accept( dragOperation, m_aDropWindow ); + m_xManager->accept( dragOperation, m_aDropWindow ); } void DropTargetDragContext::rejectDrag() { - m_rManager.reject( m_aDropWindow ); + m_xManager->reject( m_aDropWindow ); } /* @@ -90,8 +88,7 @@ DragSourceContext::DragSourceContext( ::Window aDropWindow, SelectionManager& rManager ) : m_aDropWindow( aDropWindow ), - m_rManager( rManager ), - m_xManagerRef( static_cast< OWeakObject* >(&rManager) ) + m_xManager( &rManager ) { } @@ -101,12 +98,12 @@ DragSourceContext::~DragSourceContext() sal_Int32 DragSourceContext::getCurrentCursor() { - return m_rManager.getCurrentCursor(); + return m_xManager->getCurrentCursor(); } void DragSourceContext::setCursor( sal_Int32 cursorId ) { - m_rManager.setCursor( cursorId, m_aDropWindow ); + m_xManager->setCursor( cursorId, m_aDropWindow ); } void DragSourceContext::setImage( sal_Int32 ) @@ -115,7 +112,7 @@ void DragSourceContext::setImage( sal_Int32 ) void DragSourceContext::transferablesFlavorsChanged() { - m_rManager.transferablesFlavorsChanged(); + m_xManager->transferablesFlavorsChanged(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/unx/generic/dtrans/X11_dndcontext.hxx b/vcl/unx/generic/dtrans/X11_dndcontext.hxx index e770c58686d13..276a21fe765f7 100644 --- a/vcl/unx/generic/dtrans/X11_dndcontext.hxx +++ b/vcl/unx/generic/dtrans/X11_dndcontext.hxx @@ -24,6 +24,7 @@ #include <com/sun/star/datatransfer/dnd/XDropTargetDropContext.hpp> #include <com/sun/star/datatransfer/dnd/XDropTargetDragContext.hpp> #include <cppuhelper/implbase.hxx> +#include <rtl/ref.hxx> #include <X11/Xlib.h> #include <X11/Xutil.h> @@ -35,9 +36,8 @@ namespace x11 { class DropTargetDropContext : public ::cppu::WeakImplHelper<css::datatransfer::dnd::XDropTargetDropContext> { - ::Window m_aDropWindow; - SelectionManager& m_rManager; - css::uno::Reference< XInterface > m_xManagerRef; + ::Window m_aDropWindow; + rtl::Reference<SelectionManager> m_xManager; public: DropTargetDropContext( ::Window, SelectionManager& ); virtual ~DropTargetDropContext() override; @@ -51,9 +51,8 @@ namespace x11 { class DropTargetDragContext : public ::cppu::WeakImplHelper<css::datatransfer::dnd::XDropTargetDragContext> { - ::Window m_aDropWindow; - SelectionManager& m_rManager; - css::uno::Reference< XInterface > m_xManagerRef; + ::Window m_aDropWindow; + rtl::Reference<SelectionManager> m_xManager; public: DropTargetDragContext( ::Window, SelectionManager& ); virtual ~DropTargetDragContext() override; @@ -66,9 +65,8 @@ namespace x11 { class DragSourceContext : public ::cppu::WeakImplHelper<css::datatransfer::dnd::XDragSourceContext> { - ::Window m_aDropWindow; - SelectionManager& m_rManager; - css::uno::Reference< XInterface > m_xManagerRef; + ::Window m_aDropWindow; + rtl::Reference<SelectionManager> m_xManager; public: DragSourceContext( ::Window, SelectionManager& ); virtual ~DragSourceContext() override; diff --git a/vcl/unx/generic/fontmanager/fontmanager.cxx b/vcl/unx/generic/fontmanager/fontmanager.cxx index 10ae47012b8fa..98babfee24915 100644 --- a/vcl/unx/generic/fontmanager/fontmanager.cxx +++ b/vcl/unx/generic/fontmanager/fontmanager.cxx @@ -649,9 +649,6 @@ bool PrintFontManager::analyzeSfntFile( PrintFont* pFont ) const pFont->m_aEncoding = aInfo.symbolEncoded ? RTL_TEXTENCODING_SYMBOL : RTL_TEXTENCODING_UCS2; - pFont->m_aGlobalMetricY.width = pFont->m_aGlobalMetricX.width = aInfo.xMax - aInfo.xMin; - pFont->m_aGlobalMetricY.height = pFont->m_aGlobalMetricX.height = aInfo.yMax - aInfo.yMin; - if( aInfo.ascender && aInfo.descender ) { pFont->m_nLeading = aInfo.linegap; @@ -679,9 +676,6 @@ bool PrintFontManager::analyzeSfntFile( PrintFont* pFont ) const if( pFont->m_nLeading == 0 ) pFont->m_nLeading = 15 * (pFont->m_nAscend+pFont->m_nDescend) / 100; - if( pFont->m_nAscend ) - pFont->m_aGlobalMetricX.height = pFont->m_aGlobalMetricY.height = pFont->m_nAscend + pFont->m_nDescend; - // get bounding box pFont->m_nXMin = aInfo.xMin; pFont->m_nYMin = aInfo.yMin; diff --git a/vcl/unx/generic/gdi/gdiimpl.cxx b/vcl/unx/generic/gdi/gdiimpl.cxx index 5c6c68f275d54..421bab8dcc617 100644 --- a/vcl/unx/generic/gdi/gdiimpl.cxx +++ b/vcl/unx/generic/gdi/gdiimpl.cxx @@ -127,7 +127,6 @@ X11SalGraphicsImpl::X11SalGraphicsImpl(X11SalGraphics& rParent): mnBrushPixel(0), mbPenGC(false), mbBrushGC(false), - mbMonoGC(false), mbCopyGC(false), mbInvertGC(false), mbInvert50GC(false), @@ -269,7 +268,7 @@ void X11SalGraphicsImpl::freeResources() freeGC( pDisplay, mpInvertGC ); freeGC( pDisplay, mpInvert50GC ); freeGC( pDisplay, mpStippleGC ); - mbTrackingGC = mbPenGC = mbBrushGC = mbMonoGC = mbCopyGC = mbInvertGC = mbInvert50GC = mbStippleGC = false; + mbTrackingGC = mbPenGC = mbBrushGC = mbCopyGC = mbInvertGC = mbInvert50GC = mbStippleGC = false; } GC X11SalGraphicsImpl::CreateGC( Drawable hDrawable, unsigned long nMask ) @@ -1001,7 +1000,6 @@ void X11SalGraphicsImpl::ResetClipRegion() mbPenGC = false; mrParent.bFontGC_ = false; mbBrushGC = false; - mbMonoGC = false; mbCopyGC = false; mbInvertGC = false; mbInvert50GC = false; @@ -1065,7 +1063,6 @@ bool X11SalGraphicsImpl::setClipRegion( const vcl::Region& i_rClip ) mbPenGC = false; mrParent.bFontGC_ = false; mbBrushGC = false; - mbMonoGC = false; mbCopyGC = false; mbInvertGC = false; mbInvert50GC = false; @@ -1184,7 +1181,6 @@ void X11SalGraphicsImpl::SetXORMode( bool bSet ) mbPenGC = false; mrParent.bFontGC_ = false; mbBrushGC = false; - mbMonoGC = false; mbCopyGC = false; mbInvertGC = false; mbInvert50GC = false; diff --git a/vcl/unx/generic/gdi/gdiimpl.hxx b/vcl/unx/generic/gdi/gdiimpl.hxx index 2ad9b96bc1ea6..9f404d16acc0c 100644 --- a/vcl/unx/generic/gdi/gdiimpl.hxx +++ b/vcl/unx/generic/gdi/gdiimpl.hxx @@ -52,7 +52,6 @@ private: bool mbPenGC : 1; // is Pen GC valid bool mbBrushGC : 1; // is Brush GC valid - bool mbMonoGC : 1; // is Mono GC valid bool mbCopyGC : 1; // is Copy GC valid bool mbInvertGC : 1; // is Invert GC valid bool mbInvert50GC : 1; // is Invert50 GC valid diff --git a/vcl/unx/generic/gdi/salbmp.cxx b/vcl/unx/generic/gdi/salbmp.cxx index 8401fa8e3b246..d972ee56571c4 100644 --- a/vcl/unx/generic/gdi/salbmp.cxx +++ b/vcl/unx/generic/gdi/salbmp.cxx @@ -1084,8 +1084,7 @@ struct ImplBmpObj mpBmp( pBmp ), mnMemSize( nMemSize ) {} }; -ImplSalBitmapCache::ImplSalBitmapCache() : - mnTotalSize( 0UL ) +ImplSalBitmapCache::ImplSalBitmapCache() { } @@ -1109,11 +1108,8 @@ void ImplSalBitmapCache::ImplAdd( X11SalBitmap* pBmp, sal_uLong nMemSize ) bFound = true; } - mnTotalSize += nMemSize; - if( bFound ) { - mnTotalSize -= pObj->mnMemSize; pObj->mnMemSize = nMemSize; } else @@ -1130,7 +1126,6 @@ void ImplSalBitmapCache::ImplRemove( X11SalBitmap* pBmp ) if( (*it)->mpBmp == pBmp ) { (*it)->mpBmp->ImplRemovedFromCache(); - mnTotalSize -= (*it)->mnMemSize; delete *it; maBmpList.erase( it ); break; @@ -1149,7 +1144,6 @@ void ImplSalBitmapCache::ImplClear() delete *it; } maBmpList.clear(); - mnTotalSize = 0; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx index 54d9746451f22..6290b8f46e379 100644 --- a/vcl/unx/generic/printer/ppdparser.cxx +++ b/vcl/unx/generic/printer/ppdparser.cxx @@ -595,7 +595,6 @@ PPDParser::PPDParser( const OUString& rFile ) : m_pInputSlots( nullptr ), m_pDefaultResolution( nullptr ), m_pResolutions( nullptr ), - m_pDuplexTypes( nullptr ), m_pFontList( nullptr ), m_pTranslator( new PPDTranslator() ) { @@ -741,8 +740,6 @@ PPDParser::PPDParser( const OUString& rFile ) : SAL_INFO_IF(!m_pInputSlots, "vcl.unx.print", "no InputSlot in " << m_aFile); SAL_INFO_IF(!m_pDefaultInputSlot, "vcl.unx.print", "no DefaultInputSlot in " << m_aFile); - m_pDuplexTypes = getKey( OUString( "Duplex" ) ); - m_pFontList = getKey( OUString( "Font" ) ); if (m_pFontList == nullptr) { SAL_WARN( "vcl.unx.print", "no Font in " << m_aFile); |