diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-19 15:12:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-19 21:34:46 +0200 |
commit | 3aef606f2758172a27718a06fea0ff9080e4d80f (patch) | |
tree | ad323c90301d80bbb3b68163d8b87e5402b687ed /vcl/source/uitest/uiobject.cxx | |
parent | 5afba3e12c8d4eb1ebb8e087134eb87593bb017a (diff) |
use tools::Long in vcl
Change-Id: Ice1055021e8568634e9a66ba89d3bb4ef4e731df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104522
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/uitest/uiobject.cxx')
-rw-r--r-- | vcl/source/uitest/uiobject.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx index 66211612adc0..83c4727218d0 100644 --- a/vcl/source/uitest/uiobject.cxx +++ b/vcl/source/uitest/uiobject.cxx @@ -748,8 +748,8 @@ void EditUIObject::execute(const OUString& rAction, if (rParameters.find("FROM") != rParameters.end() && rParameters.find("TO") != rParameters.end()) { - long nMin = rParameters.find("FROM")->second.toInt32(); - long nMax = rParameters.find("TO")->second.toInt32(); + tools::Long nMin = rParameters.find("FROM")->second.toInt32(); + tools::Long nMax = rParameters.find("TO")->second.toInt32(); Selection aSelection(nMin, nMax); mxEdit->SetSelection(aSelection); } @@ -784,8 +784,8 @@ OUString EditUIObject::get_action(VclEventId nEvent) const if (nEvent == VclEventId::EditSelectionChanged) { const Selection& rSelection = mxEdit->GetSelection(); - long nMin = rSelection.Min(); - long nMax = rSelection.Max(); + tools::Long nMin = rSelection.Min(); + tools::Long nMax = rSelection.Max(); if(get_top_parent(mxEdit)->get_id().isEmpty()){ //This part because if we don't have parent return "Select in '" + @@ -841,8 +841,8 @@ void MultiLineEditUIObject::execute(const OUString& rAction, if (rParameters.find("FROM") != rParameters.end() && rParameters.find("TO") != rParameters.end()) { - long nMin = rParameters.find("FROM")->second.toInt32(); - long nMax = rParameters.find("TO")->second.toInt32(); + tools::Long nMin = rParameters.find("FROM")->second.toInt32(); + tools::Long nMax = rParameters.find("TO")->second.toInt32(); Selection aSelection(nMin, nMax); mxEdit->SetSelection(aSelection); } |