From 3aef606f2758172a27718a06fea0ff9080e4d80f Mon Sep 17 00:00:00 2001 From: Noel Date: Mon, 19 Oct 2020 15:12:38 +0200 Subject: use tools::Long in vcl Change-Id: Ice1055021e8568634e9a66ba89d3bb4ef4e731df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104522 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/vcl/salnativewidgets.hxx | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'include/vcl/salnativewidgets.hxx') diff --git a/include/vcl/salnativewidgets.hxx b/include/vcl/salnativewidgets.hxx index b53331484e96..faa273b3f571 100644 --- a/include/vcl/salnativewidgets.hxx +++ b/include/vcl/salnativewidgets.hxx @@ -251,9 +251,9 @@ class VCL_DLLPUBLIC ImplControlValue private: ControlType mType; ButtonValue mTristate; // Tristate value: on, off, mixed - long mNumber; // numeric value + tools::Long mNumber; // numeric value protected: - ImplControlValue( ControlType i_eType, long i_nNumber ) + ImplControlValue( ControlType i_eType, tools::Long i_nNumber ) : mType( i_eType ) , mTristate( ButtonValue::DontKnow ) , mNumber( i_nNumber ) @@ -262,7 +262,7 @@ class VCL_DLLPUBLIC ImplControlValue public: explicit ImplControlValue( ButtonValue nTristate ) : mType( ControlType::Generic ), mTristate(nTristate), mNumber(0) {} - explicit ImplControlValue( long nNumeric ) + explicit ImplControlValue( tools::Long nNumeric ) : mType( ControlType::Generic ), mTristate(ButtonValue::DontKnow), mNumber( nNumeric) {} ImplControlValue() : mType( ControlType::Generic ), mTristate(ButtonValue::DontKnow), mNumber(0) {} @@ -281,8 +281,8 @@ class VCL_DLLPUBLIC ImplControlValue ButtonValue getTristateVal() const { return mTristate; } void setTristateVal( ButtonValue nTristate ) { mTristate = nTristate; } - long getNumericVal() const { return mNumber; } - void setNumericVal( long nNumeric ) { mNumber = nNumeric; } + tools::Long getNumericVal() const { return mNumber; } + void setNumericVal( tools::Long nNumeric ) { mNumber = nNumeric; } }; /* ScrollbarValue: @@ -292,10 +292,10 @@ class VCL_DLLPUBLIC ImplControlValue class SAL_DLLPUBLIC_RTTI ScrollbarValue final : public ImplControlValue { public: - long mnMin; - long mnMax; - long mnCur; - long mnVisibleSize; + tools::Long mnMin; + tools::Long mnMax; + tools::Long mnCur; + tools::Long mnVisibleSize; tools::Rectangle maThumbRect; tools::Rectangle maButton1Rect; tools::Rectangle maButton2Rect; @@ -322,9 +322,9 @@ class SAL_DLLPUBLIC_RTTI ScrollbarValue final : public ImplControlValue class SAL_DLLPUBLIC_RTTI SliderValue final : public ImplControlValue { public: - long mnMin; - long mnMax; - long mnCur; + tools::Long mnMin; + tools::Long mnMax; + tools::Long mnCur; tools::Rectangle maThumbRect; ControlState mnThumbState; @@ -494,7 +494,7 @@ public: class SAL_DLLPUBLIC_RTTI MenupopupValue final : public ImplControlValue { public: - MenupopupValue( long i_nGutterWidth, const tools::Rectangle& i_rItemRect ) + MenupopupValue( tools::Long i_nGutterWidth, const tools::Rectangle& i_rItemRect ) : ImplControlValue( ControlType::MenuPopup, i_nGutterWidth ) , maItemRect( i_rItemRect ) {} -- cgit