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

loplugin:constantparam

Change-Id: I895ceffa468d84d22e4a81b7a6b06eaed0bd839d
Reviewed-on: https://gerrit.libreoffice.org/61776
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 6eba86ae
......@@ -10,13 +10,13 @@ cui/source/options/webconninfo.hxx:35
dbaccess/source/filter/xml/xmlExport.hxx:171
void dbaxml::ODBExport::ODBExport(const class com::sun::star::uno::Reference<class com::sun::star::uno::XComponentContext> &,const class rtl::OUString &,enum SvXMLExportFlags)
enum SvXMLExportFlags nExportFlag setBits=0x400 clearBits=0x200
include/basegfx/polygon/b2dpolygontools.hxx:142
include/basegfx/polygon/b2dpolygontools.hxx:143
enum CutFlagValue findCut(const class basegfx::B2DPoint &,const class basegfx::B2DVector &,const class basegfx::B2DPoint &,const class basegfx::B2DVector &,enum CutFlagValue,double *,double *)
enum CutFlagValue aCutFlags setBits=0x1
include/framework/framelistanalyzer.hxx:181
void framework::FrameListAnalyzer::FrameListAnalyzer(const class com::sun::star::uno::Reference<class com::sun::star::frame::XFramesSupplier> &,const class com::sun::star::uno::Reference<class com::sun::star::frame::XFrame> &,enum FrameAnalyzerFlags)
enum FrameAnalyzerFlags eDetectMode setBits=0x4
include/sfx2/objsh.hxx:465
include/sfx2/objsh.hxx:464
void SfxObjectShell::FinishedLoading(enum SfxLoadedFlags)
enum SfxLoadedFlags nWhich setBits=0x1
include/svtools/brwbox.hxx:438
......@@ -25,9 +25,6 @@ include/svtools/brwbox.hxx:438
include/svtools/wizardmachine.hxx:172
void svt::OWizardMachine::OWizardMachine(class vcl::Window *,enum WizardButtonFlags)
enum WizardButtonFlags _nButtonFlags setBits=0xf
include/svx/langbox.hxx:164
void LanguageBox::SetLanguageList(enum SvxLanguageListFlags,_Bool,_Bool)
enum SvxLanguageListFlags nLangList setBits=0x1
include/vcl/gdimtf.hxx:195
_Bool GDIMetaFile::CreateThumbnail(class BitmapEx &,enum BmpConversion,enum BmpScaleFlag) const
enum BmpScaleFlag nScaleFlag setBits=0x1
......@@ -40,13 +37,13 @@ sc/inc/rangeutl.hxx:162
sc/inc/xmlwrap.hxx:89
_Bool ScXMLImportWrapper::Import(enum ImportFlags,class ErrCode &)
enum ImportFlags nMode setBits=0x1
sc/source/ui/view/cellsh1.cxx:112
sc/source/ui/view/cellsh1.cxx:115
enum InsertDeleteFlags FlagsFromString(const class rtl::OUString &,enum InsertDeleteFlags)
enum InsertDeleteFlags nFlagsMask setBits=0x87f clearBits=0x700
sc/source/ui/view/cellsh1.cxx:135
sc/source/ui/view/cellsh1.cxx:138
class rtl::OUString FlagsToString(enum InsertDeleteFlags,enum InsertDeleteFlags)
enum InsertDeleteFlags nFlagsMask setBits=0x87f clearBits=0x700
sw/source/core/view/viewsh.cxx:718
sw/source/core/view/viewsh.cxx:730
void lcl_InvalidateAllContent(class SwViewShell &,enum SwInvalidateFlags)
enum SwInvalidateFlags nInv setBits=0x2
sw/source/filter/html/swhtml.hxx:671
......
......@@ -23,7 +23,7 @@ namespace dbaui
class LimitBox: public NumericBox
{
public:
LimitBox( vcl::Window* pParent, WinBits nStyle );
LimitBox( vcl::Window* pParent );
virtual OUString CreateFieldText( sal_Int64 nValue ) const override;
......
......@@ -32,8 +32,8 @@ namespace dbaui
{
LimitBox::LimitBox( vcl::Window* pParent, WinBits nStyle )
: NumericBox( pParent, nStyle )
LimitBox::LimitBox( vcl::Window* pParent )
: NumericBox( pParent, WB_DROPDOWN | WB_VSCROLL )
{
SetShowTrailingZeros( false );
SetDecimalDigits( 0 );
......
......@@ -40,7 +40,7 @@ class LimitBoxImpl: public LimitBox
};
LimitBoxImpl::LimitBoxImpl( vcl::Window* pParent, LimitBoxController* pCtrl )
: LimitBox( pParent, WinBits( WB_DROPDOWN | WB_VSCROLL) )
: LimitBox( pParent )
, m_pControl( pCtrl )
{
}
......
......@@ -234,7 +234,7 @@ private:
bool mbAddStandardFields : 1;
public:
LineLB(vcl::Window* pParent, WinBits aWB);
LineLB(vcl::Window* pParent);
void Fill(const XDashListRef &pList);
bool getAddStandardFields() const { return mbAddStandardFields; }
......
......@@ -922,8 +922,8 @@ void FillTypeLB::Fill()
SetUpdateMode( true );
}
LineLB::LineLB(vcl::Window* pParent, WinBits aWB)
: ListBox(pParent, aWB),
LineLB::LineLB(vcl::Window* pParent)
: ListBox(pParent, WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL),
mbAddStandardFields(true)
{
// No EdgeBlending for LineStyle/Dash SetEdgeBlending(true);
......
......@@ -51,7 +51,7 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::beans;
SvxLineBox::SvxLineBox( vcl::Window* pParent, const Reference< XFrame >& rFrame ) :
LineLB( pParent, WB_BORDER | WB_DROPDOWN | WB_AUTOHSCROLL ),
LineLB( pParent ),
nCurPos ( 0 ),
aLogicalSize(40,140),
bRelease ( true ),
......
......@@ -117,7 +117,7 @@ namespace
return 0;
}
GLXFBConfig* getFBConfig(Display* dpy, Window win, int& nBestFBC, bool bUseDoubleBufferedRendering)
GLXFBConfig* getFBConfig(Display* dpy, Window win, int& nBestFBC)
{
OpenGLZone aZone;
......@@ -150,9 +150,6 @@ namespace
None
};
if (!bUseDoubleBufferedRendering)
visual_attribs[1] = False;
int fbCount = 0;
GLXFBConfig* pFBC = glXChooseFBConfig( dpy,
screen,
......@@ -260,7 +257,7 @@ SystemWindowData X11OpenGLContext::generateWinData(vcl::Window* pParent, bool /*
return aWinData;
int best_fbc = -1;
GLXFBConfig* pFBC = getFBConfig(dpy, win, best_fbc, true);
GLXFBConfig* pFBC = getFBConfig(dpy, win, best_fbc);
if (!pFBC)
return aWinData;
......@@ -302,7 +299,7 @@ bool X11OpenGLContext::ImplInit()
if (hasCreateContextAttribsARB && !mbRequestLegacyContext)
{
int best_fbc = -1;
GLXFBConfig* pFBC = getFBConfig(m_aGLWin.dpy, m_aGLWin.win, best_fbc, /*bUseDoubleBufferedRendering*/true);
GLXFBConfig* pFBC = getFBConfig(m_aGLWin.dpy, m_aGLWin.win, best_fbc);
if (pFBC && best_fbc != -1)
{
......
......@@ -1573,8 +1573,7 @@ bool X11SalGraphicsImpl::drawFilledTrapezoids( const basegfx::B2DTrapezoid* pB2D
bool X11SalGraphicsImpl::drawFilledTriangles(
const basegfx::B2DHomMatrix& rObjectToDevice,
const basegfx::triangulator::B2DTriangleVector& rTriangles,
double fTransparency,
bool bPixelOffset)
double fTransparency)
{
if(rTriangles.empty())
return true;
......@@ -1589,10 +1588,7 @@ bool X11SalGraphicsImpl::drawFilledTriangles(
// prepare transformation for ObjectToDevice coordinate system
basegfx::B2DHomMatrix aObjectToDevice(rObjectToDevice);
if(bPixelOffset)
{
aObjectToDevice = basegfx::utils::createTranslateB2DHomMatrix(0.5, 0.5) * aObjectToDevice;
}
aObjectToDevice = basegfx::utils::createTranslateB2DHomMatrix(0.5, 0.5) * aObjectToDevice;
// convert the Triangles into XRender-Triangles
std::vector<XTriangle> aTriVector(rTriangles.size());
......@@ -1847,8 +1843,7 @@ bool X11SalGraphicsImpl::drawPolyLine(
drawFilledTriangles(
rObjectToDevice,
pSystemDependentData_Triangulation->getTriangles(),
fTransparency,
true));
fTransparency));
// restore the original brush GC
mnBrushColor = aKeepBrushColor;
......
......@@ -97,8 +97,7 @@ private:
bool drawFilledTriangles(
const basegfx::B2DHomMatrix& rObjectToDevice,
const basegfx::triangulator::B2DTriangleVector& rTriangles,
double fTransparency,
bool bPixelOffset);
double fTransparency);
long GetGraphicsHeight() const;
......
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