diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-12-18 10:01:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-12-18 21:30:42 +0100 |
commit | 9906db915184b83ef292eae9cba6cbdd4952b051 (patch) | |
tree | a3d8d71aa77d946098b7030e35710908e9173387 | |
parent | ff2f33a9b9b2c4ca797193696d76c28344cee9f0 (diff) |
sal_uLong->sal_uInt32
the position here is cast to sal_uInt32 so begin as sal_uInt32 initially
Change-Id: I221d97961292988e90a23091ffc9324d42fc366e
Reviewed-on: https://gerrit.libreoffice.org/46698
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | svx/source/form/navigatortree.cxx | 4 | ||||
-rw-r--r-- | svx/source/form/navigatortreemodel.cxx | 2 | ||||
-rw-r--r-- | svx/source/inc/fmexpl.hxx | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/form/navigatortree.cxx b/svx/source/form/navigatortree.cxx index 0528be0da8ac..c530948ea002 100644 --- a/svx/source/form/navigatortree.cxx +++ b/svx/source/form/navigatortree.cxx @@ -1343,7 +1343,7 @@ namespace svxform // insert form - GetNavModel()->Insert( pNewFormData, TREELIST_APPEND, true ); + GetNavModel()->Insert(pNewFormData, SAL_MAX_UINT32, true); // set new form as active @@ -1394,7 +1394,7 @@ namespace svxform // insert FormComponent - GetNavModel()->Insert( pNewFormControlData, TREELIST_APPEND, true ); + GetNavModel()->Insert(pNewFormControlData, SAL_MAX_UINT32, true); GetNavModel()->SetModified(); if (bEditName) diff --git a/svx/source/form/navigatortreemodel.cxx b/svx/source/form/navigatortreemodel.cxx index 8c8cedd6f0a4..3d54e3aea7f7 100644 --- a/svx/source/form/navigatortreemodel.cxx +++ b/svx/source/form/navigatortreemodel.cxx @@ -250,7 +250,7 @@ namespace svxform } - void NavigatorTreeModel::Insert(FmEntryData* pEntry, sal_uLong nRelPos, bool bAlterModel) + void NavigatorTreeModel::Insert(FmEntryData* pEntry, sal_uInt32 nRelPos, bool bAlterModel) { if (IsListening(*m_pFormModel)) EndListening(*m_pFormModel); diff --git a/svx/source/inc/fmexpl.hxx b/svx/source/inc/fmexpl.hxx index 31d4668e3b55..469b9edf35be 100644 --- a/svx/source/inc/fmexpl.hxx +++ b/svx/source/inc/fmexpl.hxx @@ -348,9 +348,9 @@ namespace svxform void FillBranch( FmFormData* pParentData ); void UpdateContent( FmFormShell* pNewShell ); - void Insert( FmEntryData* pEntryData, sal_uLong nRelPos = CONTAINER_APPEND, - bool bAlterModel = false ); - void Remove( FmEntryData* pEntryData, bool bAlterModel = false ); + void Insert(FmEntryData* pEntryData, sal_uInt32 nRelPos = SAL_MAX_UINT32, + bool bAlterModel = false); + void Remove(FmEntryData* pEntryData, bool bAlterModel = false); static bool Rename( FmEntryData* pEntryData, const OUString& rNewText ); |