dbaccess/source/ui/browser/unodatbr.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit bcd5a154e4284848553f994d4d0612182130c271
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Thu Feb 3 22:12:53 2022 +0100
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Fri Feb 4 08:01:35 2022 +0100

    Use only toUInt64 for reinterpret_cast<DBTreeListUserData*>
    
    Change-Id: I3e7ad37ae5cc59dd0378ef1b08b4cc47a780e005
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129475
    Tested-by: Julien Nabet <serval2...@yahoo.fr>
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/dbaccess/source/ui/browser/unodatbr.cxx 
b/dbaccess/source/ui/browser/unodatbr.cxx
index ee07b531f8b2..4d6cb342dc44 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -2150,7 +2150,7 @@ IMPL_LINK(SbaTableQueryBrowser, OnExpandEntry, const 
weld::TreeIter&, rParent, b
     std::unique_ptr<weld::TreeIter> xFirstParent = 
m_pTreeView->GetRootLevelParent(&rParent);
     OSL_ENSURE(xFirstParent,"SbaTableQueryBrowser::OnExpandEntry: No 
rootlevelparent!");
 
-    DBTreeListUserData* pData = 
reinterpret_cast<DBTreeListUserData*>(rTreeView.get_id(rParent).toInt64());
+    DBTreeListUserData* pData = 
reinterpret_cast<DBTreeListUserData*>(rTreeView.get_id(rParent).toUInt64());
     assert(pData && "SbaTableQueryBrowser::OnExpandEntry: No user data!");
 
     if (etTableContainer == pData->eType)
@@ -2482,11 +2482,11 @@ std::unique_ptr<weld::TreeIter> 
SbaTableQueryBrowser::implGetConnectionEntry(con
 {
     weld::TreeView& rTreeView = m_pTreeView->GetWidget();
     std::unique_ptr<weld::TreeIter> 
xCurrentEntry(rTreeView.make_iterator(&rEntry));
-    DBTreeListUserData* pEntryData = 
reinterpret_cast<DBTreeListUserData*>(rTreeView.get_id(*xCurrentEntry).toInt64());
+    DBTreeListUserData* pEntryData = 
reinterpret_cast<DBTreeListUserData*>(rTreeView.get_id(*xCurrentEntry).toUInt64());
     while (pEntryData->eType != etDatasource)
     {
         rTreeView.iter_parent(*xCurrentEntry);
-        pEntryData = 
reinterpret_cast<DBTreeListUserData*>(rTreeView.get_id(*xCurrentEntry).toInt64());
+        pEntryData = 
reinterpret_cast<DBTreeListUserData*>(rTreeView.get_id(*xCurrentEntry).toUInt64());
     }
     return xCurrentEntry;
 }

Reply via email to