Kaydet (Commit) a4ca332a authored tarafından Noel Grandin's avatar Noel Grandin

-Wunused-parameter in qt5 plugin

Change-Id: I2d17ccdc9addb911fef8925d87b794075946c3ca
üst 2b946181
......@@ -113,8 +113,8 @@ bool Qt5Bitmap::Create(const SalBitmap& rSalBmp, sal_uInt16 nNewBitCount)
return true;
}
bool Qt5Bitmap::Create(const css::uno::Reference<css::rendering::XBitmapCanvas>& rBitmapCanvas,
Size& rSize, bool bMask)
bool Qt5Bitmap::Create(const css::uno::Reference<css::rendering::XBitmapCanvas>& /*rBitmapCanvas*/,
Size& /*rSize*/, bool /*bMask*/)
{
return false;
}
......@@ -143,7 +143,7 @@ sal_uInt16 Qt5Bitmap::GetBitCount() const
return 0;
}
BitmapBuffer* Qt5Bitmap::AcquireBuffer(BitmapAccessMode nMode)
BitmapBuffer* Qt5Bitmap::AcquireBuffer(BitmapAccessMode /*nMode*/)
{
static const BitmapPalette aEmptyPalette;
......@@ -215,7 +215,7 @@ BitmapBuffer* Qt5Bitmap::AcquireBuffer(BitmapAccessMode nMode)
return pBuffer;
}
void Qt5Bitmap::ReleaseBuffer(BitmapBuffer* pBuffer, BitmapAccessMode nMode)
void Qt5Bitmap::ReleaseBuffer(BitmapBuffer* pBuffer, BitmapAccessMode /*nMode*/)
{
m_aPalette = pBuffer->maPalette;
auto count = m_aPalette.GetEntryCount();
......@@ -230,16 +230,18 @@ void Qt5Bitmap::ReleaseBuffer(BitmapBuffer* pBuffer, BitmapAccessMode nMode)
delete pBuffer;
}
bool Qt5Bitmap::GetSystemData(BitmapSystemData& rData) { return false; }
bool Qt5Bitmap::GetSystemData(BitmapSystemData& /*rData*/) { return false; }
bool Qt5Bitmap::ScalingSupported() const { return false; }
bool Qt5Bitmap::Scale(const double& rScaleX, const double& rScaleY, BmpScaleFlag nScaleFlag)
bool Qt5Bitmap::Scale(const double& /*rScaleX*/, const double& /*rScaleY*/,
BmpScaleFlag /*nScaleFlag*/)
{
return false;
}
bool Qt5Bitmap::Replace(const Color& rSearchColor, const Color& rReplaceColor, sal_uInt8 nTol)
bool Qt5Bitmap::Replace(const Color& /*rSearchColor*/, const Color& /*rReplaceColor*/,
sal_uInt8 /*nTol*/)
{
return false;
}
......
......@@ -192,6 +192,6 @@ QCursor& Qt5Data::getCursor(PointerStyle ePointerStyle)
void Qt5Data::ErrorTrapPush() {}
bool Qt5Data::ErrorTrapPop(bool bIgnoreError) { return false; }
bool Qt5Data::ErrorTrapPop(bool /*bIgnoreError*/) { return false; }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -227,13 +227,13 @@ void Qt5Frame::SetIcon(sal_uInt16 nIcon)
m_pQWidget->window()->setWindowIcon(aIcon);
}
void Qt5Frame::SetMenu(SalMenu* pMenu) {}
void Qt5Frame::SetMenu(SalMenu* /*pMenu*/) {}
void Qt5Frame::DrawMenuBar() {}
void Qt5Frame::SetExtendedFrameStyle(SalExtStyle nExtStyle) {}
void Qt5Frame::SetExtendedFrameStyle(SalExtStyle /*nExtStyle*/) {}
void Qt5Frame::Show(bool bVisible, bool bNoActivate)
void Qt5Frame::Show(bool bVisible, bool /*bNoActivate*/)
{
assert(m_pQWidget.get());
m_pQWidget->setVisible(bVisible);
......@@ -409,13 +409,13 @@ bool Qt5Frame::GetWindowState(SalFrameState* pState)
return true;
}
void Qt5Frame::ShowFullScreen(bool bFullScreen, sal_Int32 nDisplay) {}
void Qt5Frame::ShowFullScreen(bool /*bFullScreen*/, sal_Int32 /*nDisplay*/) {}
void Qt5Frame::StartPresentation(bool bStart) {}
void Qt5Frame::StartPresentation(bool /*bStart*/) {}
void Qt5Frame::SetAlwaysOnTop(bool bOnTop) {}
void Qt5Frame::SetAlwaysOnTop(bool /*bOnTop*/) {}
void Qt5Frame::ToTop(SalFrameToTop nFlags) {}
void Qt5Frame::ToTop(SalFrameToTop /*nFlags*/) {}
void Qt5Frame::SetPointer(PointerStyle ePointerStyle)
{
......@@ -429,22 +429,22 @@ void Qt5Frame::SetPointer(PointerStyle ePointerStyle)
pWindow->setCursor(static_cast<Qt5Data*>(GetSalData())->getCursor(ePointerStyle));
}
void Qt5Frame::CaptureMouse(bool bMouse) {}
void Qt5Frame::CaptureMouse(bool /*bMouse*/) {}
void Qt5Frame::SetPointerPos(long nX, long nY) {}
void Qt5Frame::SetPointerPos(long /*nX*/, long /*nY*/) {}
void Qt5Frame::Flush() {}
void Qt5Frame::Flush(const tools::Rectangle& rRect) {}
void Qt5Frame::Flush(const tools::Rectangle& /*rRect*/) {}
void Qt5Frame::SetInputContext(SalInputContext* pContext) {}
void Qt5Frame::SetInputContext(SalInputContext* /*pContext*/) {}
void Qt5Frame::EndExtTextInput(EndExtTextInputFlags nFlags) {}
void Qt5Frame::EndExtTextInput(EndExtTextInputFlags /*nFlags*/) {}
OUString Qt5Frame::GetKeyName(sal_uInt16 nKeyCode) { return OUString(); }
OUString Qt5Frame::GetKeyName(sal_uInt16 /*nKeyCode*/) { return OUString(); }
bool Qt5Frame::MapUnicodeToKeyCode(sal_Unicode aUnicode, LanguageType aLangType,
vcl::KeyCode& rKeyCode)
bool Qt5Frame::MapUnicodeToKeyCode(sal_Unicode /*aUnicode*/, LanguageType /*aLangType*/,
vcl::KeyCode& /*rKeyCode*/)
{
return false;
}
......@@ -477,17 +477,17 @@ SalFrame::SalPointerState Qt5Frame::GetPointerState()
KeyIndicatorState Qt5Frame::GetIndicatorState() { return KeyIndicatorState(); }
void Qt5Frame::SimulateKeyPress(sal_uInt16 nKeyCode) {}
void Qt5Frame::SimulateKeyPress(sal_uInt16 /*nKeyCode*/) {}
void Qt5Frame::SetParent(SalFrame* pNewParent) { m_pParent = static_cast<Qt5Frame*>(pNewParent); }
bool Qt5Frame::SetPluginParent(SystemParentData* pNewParent) { return false; }
bool Qt5Frame::SetPluginParent(SystemParentData* /*pNewParent*/) { return false; }
void Qt5Frame::ResetClipRegion() {}
void Qt5Frame::BeginSetClipRegion(sal_uLong nRects) {}
void Qt5Frame::BeginSetClipRegion(sal_uLong /*nRects*/) {}
void Qt5Frame::UnionClipRegion(long nX, long nY, long nWidth, long nHeight) {}
void Qt5Frame::UnionClipRegion(long /*nX*/, long /*nY*/, long /*nWidth*/, long /*nHeight*/) {}
void Qt5Frame::EndSetClipRegion() {}
......
......@@ -78,31 +78,34 @@ bool Qt5Graphics::supportsOperation(OutDevSupportType eType) const
bool Qt5Graphics::SupportsCairo() const { return false; }
cairo::SurfaceSharedPtr
Qt5Graphics::CreateSurface(const cairo::CairoSurfaceSharedPtr& rSurface) const
Qt5Graphics::CreateSurface(const cairo::CairoSurfaceSharedPtr& /*rSurface*/) const
{
return nullptr;
}
cairo::SurfaceSharedPtr Qt5Graphics::CreateSurface(const OutputDevice& rRefDevice, int x, int y,
int width, int height) const
cairo::SurfaceSharedPtr Qt5Graphics::CreateSurface(const OutputDevice& /*rRefDevice*/, int /*x*/,
int /*y*/, int /*width*/, int /*height*/) const
{
return nullptr;
}
cairo::SurfaceSharedPtr Qt5Graphics::CreateBitmapSurface(const OutputDevice& rRefDevice,
const BitmapSystemData& rData,
const Size& rSize) const
cairo::SurfaceSharedPtr Qt5Graphics::CreateBitmapSurface(const OutputDevice& /*rRefDevice*/,
const BitmapSystemData& /*rData*/,
const Size& /*rSize*/) const
{
return nullptr;
}
css::uno::Any Qt5Graphics::GetNativeSurfaceHandle(cairo::SurfaceSharedPtr& rSurface,
const basegfx::B2ISize& rSize) const
css::uno::Any Qt5Graphics::GetNativeSurfaceHandle(cairo::SurfaceSharedPtr& /*rSurface*/,
const basegfx::B2ISize& /*rSize*/) const
{
return css::uno::Any();
}
SystemFontData Qt5Graphics::GetSysFontData(int nFallbacklevel) const { return SystemFontData(); }
SystemFontData Qt5Graphics::GetSysFontData(int /*nFallbacklevel*/) const
{
return SystemFontData();
}
#endif
......
......@@ -19,28 +19,30 @@
#include "Qt5Graphics.hxx"
bool Qt5Graphics::IsNativeControlSupported(ControlType nType, ControlPart nPart) { return false; }
bool Qt5Graphics::IsNativeControlSupported(ControlType /*nType*/, ControlPart /*nPart*/)
{
return false;
}
bool Qt5Graphics::hitTestNativeControl(ControlType nType, ControlPart nPart,
const tools::Rectangle& rControlRegion, const Point& aPos,
bool& rIsInside)
bool Qt5Graphics::hitTestNativeControl(ControlType /*nType*/, ControlPart /*nPart*/,
const tools::Rectangle& /*rControlRegion*/,
const Point& /*aPos*/, bool& /*rIsInside*/)
{
return false;
}
bool Qt5Graphics::drawNativeControl(ControlType nType, ControlPart nPart,
const tools::Rectangle& rControlRegion, ControlState nState,
const ImplControlValue& aValue, const OUString& aCaption)
bool Qt5Graphics::drawNativeControl(ControlType /*nType*/, ControlPart /*nPart*/,
const tools::Rectangle& /*rControlRegion*/,
ControlState /*nState*/, const ImplControlValue& /*aValue*/,
const OUString& /*aCaption*/)
{
return false;
}
bool Qt5Graphics::getNativeControlRegion(ControlType nType, ControlPart nPart,
const tools::Rectangle& rControlRegion,
ControlState nState, const ImplControlValue& aValue,
const OUString& aCaption,
tools::Rectangle& rNativeBoundingRegion,
tools::Rectangle& rNativeContentRegion)
bool Qt5Graphics::getNativeControlRegion(
ControlType /*nType*/, ControlPart /*nPart*/, const tools::Rectangle& /*rControlRegion*/,
ControlState /*nState*/, const ImplControlValue& /*aValue*/, const OUString& /*aCaption*/,
tools::Rectangle& /*rNativeBoundingRegion*/, tools::Rectangle& /*rNativeContentRegion*/)
{
return false;
}
......
......@@ -248,8 +248,8 @@ void Qt5Graphics::drawPolygon(sal_uInt32 nPoints, const SalPoint* pPtAry)
aPainter.update(aPolygon.boundingRect());
}
void Qt5Graphics::drawPolyPolygon(sal_uInt32 nPoly, const sal_uInt32* pPoints,
PCONSTSALPOINT* pPtAry)
void Qt5Graphics::drawPolyPolygon(sal_uInt32 /*nPoly*/, const sal_uInt32* /*pPoints*/,
PCONSTSALPOINT* /*pPtAry*/)
{
}
......@@ -273,21 +273,21 @@ bool Qt5Graphics::drawPolyPolygon(const basegfx::B2DPolyPolygon& rPolyPoly, doub
return true;
}
bool Qt5Graphics::drawPolyLineBezier(sal_uInt32 nPoints, const SalPoint* pPtAry,
const PolyFlags* pFlgAry)
bool Qt5Graphics::drawPolyLineBezier(sal_uInt32 /*nPoints*/, const SalPoint* /*pPtAry*/,
const PolyFlags* /*pFlgAry*/)
{
return false;
}
bool Qt5Graphics::drawPolygonBezier(sal_uInt32 nPoints, const SalPoint* pPtAry,
const PolyFlags* pFlgAry)
bool Qt5Graphics::drawPolygonBezier(sal_uInt32 /*nPoints*/, const SalPoint* /*pPtAry*/,
const PolyFlags* /*pFlgAry*/)
{
return false;
}
bool Qt5Graphics::drawPolyPolygonBezier(sal_uInt32 nPoly, const sal_uInt32* pPoints,
const SalPoint* const* pPtAry,
const PolyFlags* const* pFlgAry)
bool Qt5Graphics::drawPolyPolygonBezier(sal_uInt32 /*nPoly*/, const sal_uInt32* /*pPoints*/,
const SalPoint* const* /*pPtAry*/,
const PolyFlags* const* /*pFlgAry*/)
{
return false;
}
......@@ -357,7 +357,7 @@ bool Qt5Graphics::drawPolyLine(const basegfx::B2DPolygon& rPolyLine, double fTra
bool Qt5Graphics::drawGradient(const tools::PolyPolygon&, const Gradient&) { return false; }
void Qt5Graphics::copyArea(long nDestX, long nDestY, long nSrcX, long nSrcY, long nSrcWidth,
long nSrcHeight, bool bWindowInvalidate)
long nSrcHeight, bool /*bWindowInvalidate*/)
{
if (nDestX == nSrcX && nDestY == nSrcY)
return;
......@@ -413,8 +413,8 @@ void Qt5Graphics::drawBitmap(const SalTwoRect& rPosAry, const SalBitmap& rSalBit
aPainter.update(rPosAry.mnDestX, rPosAry.mnDestY, rPosAry.mnDestWidth, rPosAry.mnDestHeight);
}
void Qt5Graphics::drawBitmap(const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap,
const SalBitmap& rTransparentBitmap)
void Qt5Graphics::drawBitmap(const SalTwoRect& rPosAry, const SalBitmap& /*rSalBitmap*/,
const SalBitmap& /*rTransparentBitmap*/)
{
if (rPosAry.mnSrcWidth <= 0 || rPosAry.mnSrcHeight <= 0 || rPosAry.mnDestWidth <= 0
|| rPosAry.mnDestHeight <= 0)
......@@ -424,8 +424,8 @@ void Qt5Graphics::drawBitmap(const SalTwoRect& rPosAry, const SalBitmap& rSalBit
assert(rPosAry.mnSrcHeight == rPosAry.mnDestHeight);
}
void Qt5Graphics::drawMask(const SalTwoRect& rPosAry, const SalBitmap& rSalBitmap,
SalColor nMaskColor)
void Qt5Graphics::drawMask(const SalTwoRect& rPosAry, const SalBitmap& /*rSalBitmap*/,
SalColor /*nMaskColor*/)
{
if (rPosAry.mnSrcWidth <= 0 || rPosAry.mnSrcHeight <= 0 || rPosAry.mnDestWidth <= 0
|| rPosAry.mnDestHeight <= 0)
......@@ -442,19 +442,26 @@ SalBitmap* Qt5Graphics::getBitmap(long nX, long nY, long nWidth, long nHeight)
SalColor Qt5Graphics::getPixel(long nX, long nY) { return m_pQImage->pixel(nX, nY); }
void Qt5Graphics::invert(long nX, long nY, long nWidth, long nHeight, SalInvert nFlags) {}
void Qt5Graphics::invert(long /*nX*/, long /*nY*/, long /*nWidth*/, long /*nHeight*/,
SalInvert /*nFlags*/)
{
}
void Qt5Graphics::invert(sal_uInt32 nPoints, const SalPoint* pPtAry, SalInvert nFlags) {}
void Qt5Graphics::invert(sal_uInt32 /*nPoints*/, const SalPoint* /*pPtAry*/, SalInvert /*nFlags*/)
{
}
bool Qt5Graphics::drawEPS(long nX, long nY, long nWidth, long nHeight, void* pPtr, sal_uLong nSize)
bool Qt5Graphics::drawEPS(long /*nX*/, long /*nY*/, long /*nWidth*/, long /*nHeight*/,
void* /*pPtr*/, sal_uLong /*nSize*/)
{
return false;
}
bool Qt5Graphics::blendBitmap(const SalTwoRect&, const SalBitmap& rBitmap) { return false; }
bool Qt5Graphics::blendBitmap(const SalTwoRect&, const SalBitmap& /*rBitmap*/) { return false; }
bool Qt5Graphics::blendAlphaBitmap(const SalTwoRect&, const SalBitmap& rSrcBitmap,
const SalBitmap& rMaskBitmap, const SalBitmap& rAlphaBitmap)
bool Qt5Graphics::blendAlphaBitmap(const SalTwoRect&, const SalBitmap& /*rSrcBitmap*/,
const SalBitmap& /*rMaskBitmap*/,
const SalBitmap& /*rAlphaBitmap*/)
{
return false;
}
......@@ -593,8 +600,8 @@ void Qt5Graphics::SetXORMode(bool bSet)
m_eCompositionMode = QPainter::CompositionMode_SourceOver;
}
void Qt5Graphics::SetROPLineColor(SalROPColor nROPColor) {}
void Qt5Graphics::SetROPLineColor(SalROPColor /*nROPColor*/) {}
void Qt5Graphics::SetROPFillColor(SalROPColor nROPColor) {}
void Qt5Graphics::SetROPFillColor(SalROPColor /*nROPColor*/) {}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -108,28 +108,29 @@ void Qt5Graphics::GetDevFontList(PhysicalFontCollection* pPFC)
void Qt5Graphics::ClearDevFontCache() {}
bool Qt5Graphics::AddTempDevFont(PhysicalFontCollection*, const OUString& rFileURL,
const OUString& rFontName)
bool Qt5Graphics::AddTempDevFont(PhysicalFontCollection*, const OUString& /*rFileURL*/,
const OUString& /*rFontName*/)
{
return false;
}
bool Qt5Graphics::CreateFontSubset(const OUString& rToFile, const PhysicalFontFace* pFont,
const sal_GlyphId* pGlyphIds, const sal_uInt8* pEncoding,
sal_Int32* pWidths, int nGlyphs, FontSubsetInfo& rInfo)
bool Qt5Graphics::CreateFontSubset(const OUString& /*rToFile*/, const PhysicalFontFace* /*pFont*/,
const sal_GlyphId* /*pGlyphIds*/, const sal_uInt8* /*pEncoding*/,
sal_Int32* /*pWidths*/, int /*nGlyphs*/,
FontSubsetInfo& /*rInfo*/)
{
return false;
}
const void* Qt5Graphics::GetEmbedFontData(const PhysicalFontFace*, long* pDataLen)
const void* Qt5Graphics::GetEmbedFontData(const PhysicalFontFace*, long* /*pDataLen*/)
{
return nullptr;
}
void Qt5Graphics::FreeEmbedFontData(const void* pData, long nDataLen) {}
void Qt5Graphics::FreeEmbedFontData(const void* /*pData*/, long /*nDataLen*/) {}
void Qt5Graphics::GetGlyphWidths(const PhysicalFontFace* pPFF, bool bVertical,
std::vector<sal_Int32>& rWidths, Ucs2UIntMap& rUnicodeEnc)
void Qt5Graphics::GetGlyphWidths(const PhysicalFontFace* /*pPFF*/, bool /*bVertical*/,
std::vector<sal_Int32>& /*rWidths*/, Ucs2UIntMap& /*rUnicodeEnc*/)
{
}
......
......@@ -158,7 +158,7 @@ bool Qt5Instance::DoYield(bool bWait, bool bHandleAllCurrentEvents)
return bWasEvent;
}
bool Qt5Instance::AnyInput(VclInputFlags nType) { return false; }
bool Qt5Instance::AnyInput(VclInputFlags /*nType*/) { return false; }
SalSession* Qt5Instance::CreateSalSession() { return nullptr; }
......
......@@ -56,7 +56,7 @@ void Qt5Object::EndSetClipRegion()
m_pRegion = m_pRegion.intersected(m_pQWidget->geometry());
}
void Qt5Object::SetPosSize(long nX, long nY, long nWidth, long nHeight) {}
void Qt5Object::SetPosSize(long /*nX*/, long /*nY*/, long /*nWidth*/, long /*nHeight*/) {}
void Qt5Object::Show(bool bVisible)
{
......@@ -64,7 +64,7 @@ void Qt5Object::Show(bool bVisible)
m_pQWidget->setVisible(bVisible);
}
void Qt5Object::SetForwardKey(bool bEnable) {}
void Qt5Object::SetForwardKey(bool /*bEnable*/) {}
const SystemEnvData* Qt5Object::GetSystemData() const { return nullptr; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment