summaryrefslogtreecommitdiff
path: root/svx/source/xoutdev/xtable.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-12 09:52:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-26 07:35:36 +0100
commit4fbd63860500b2db76df4d5aedbe5e3aa31fac69 (patch)
tree5fa96dc262ba651e82244b0f9e508f79e88ea2df /svx/source/xoutdev/xtable.cxx
parent62fa5bb8c1299469eacc21cb35ee670b65120713 (diff)
switching long to a 64-bit type on 64-bit windows
(*) create a rewriting plugin to do most of the work, heavily based on the fakebool plugin (*) but there are still a number of "long"s in the codebase that will need to be done by hand (*) the plugin needs lots of handholding, due to needing to add #include and update macros Change-Id: I8184d7000ca482c0469514bb73178c3a1123b1e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104203 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/xoutdev/xtable.cxx')
-rw-r--r--svx/source/xoutdev/xtable.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/svx/source/xoutdev/xtable.cxx b/svx/source/xoutdev/xtable.cxx
index ad7c19b0f4cc..3bb6ca063765 100644
--- a/svx/source/xoutdev/xtable.cxx
+++ b/svx/source/xoutdev/xtable.cxx
@@ -108,7 +108,7 @@ XPropertyList::XPropertyList(
// fprintf (stderr, "Create type %d count %d\n", (int)meType, count++);
}
-bool XPropertyList::isValidIdx(long nIndex) const
+bool XPropertyList::isValidIdx(tools::Long nIndex) const
{
return (nIndex >= 0 && o3tl::make_unsigned(nIndex) < maList.size());
}
@@ -118,7 +118,7 @@ XPropertyList::~XPropertyList()
{
}
-long XPropertyList::Count() const
+tools::Long XPropertyList::Count() const
{
if( mbListDirty )
{
@@ -128,7 +128,7 @@ long XPropertyList::Count() const
return maList.size();
}
-XPropertyEntry* XPropertyList::Get( long nIndex ) const
+XPropertyEntry* XPropertyList::Get( tools::Long nIndex ) const
{
if( mbListDirty )
{
@@ -141,7 +141,7 @@ XPropertyEntry* XPropertyList::Get( long nIndex ) const
return maList[nIndex].get();
}
-long XPropertyList::GetIndex(const OUString& rName) const
+tools::Long XPropertyList::GetIndex(const OUString& rName) const
{
if( mbListDirty )
{
@@ -149,7 +149,7 @@ long XPropertyList::GetIndex(const OUString& rName) const
const_cast<XPropertyList*>(this)->Create();
}
- for( long i = 0, n = maList.size(); i < n; ++i ) {
+ for( tools::Long i = 0, n = maList.size(); i < n; ++i ) {
if (rName == maList[ i ]->GetName()) {
return i;
}
@@ -157,7 +157,7 @@ long XPropertyList::GetIndex(const OUString& rName) const
return -1;
}
-BitmapEx XPropertyList::GetUiBitmap( long nIndex ) const
+BitmapEx XPropertyList::GetUiBitmap( tools::Long nIndex ) const
{
BitmapEx aRetval;
if (!isValidIdx(nIndex))
@@ -174,7 +174,7 @@ BitmapEx XPropertyList::GetUiBitmap( long nIndex ) const
return aRetval;
}
-void XPropertyList::Insert(std::unique_ptr<XPropertyEntry> pEntry, long nIndex)
+void XPropertyList::Insert(std::unique_ptr<XPropertyEntry> pEntry, tools::Long nIndex)
{
if (!pEntry)
{
@@ -189,7 +189,7 @@ void XPropertyList::Insert(std::unique_ptr<XPropertyEntry> pEntry, long nIndex)
}
}
-void XPropertyList::Replace(std::unique_ptr<XPropertyEntry> pEntry, long nIndex)
+void XPropertyList::Replace(std::unique_ptr<XPropertyEntry> pEntry, tools::Long nIndex)
{
if (!pEntry)
{
@@ -205,7 +205,7 @@ void XPropertyList::Replace(std::unique_ptr<XPropertyEntry> pEntry, long nIndex)
maList[nIndex] = std::move(pEntry);
}
-void XPropertyList::Remove(long nIndex)
+void XPropertyList::Remove(tools::Long nIndex)
{
if (!isValidIdx(nIndex))
{