diff options
author | Yli875 <qq3202390739@gmail.com> | 2023-10-01 22:08:43 -0700 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2023-11-09 13:45:47 +0100 |
commit | 38f9bc92401899489c94276f8647a747f17598e1 (patch) | |
tree | 89e642e56e2ba6ab43a83a8d1469dba96b15f379 /include | |
parent | 8ccd386b0793b14859ba2031b34853715606828c (diff) |
tdf#114441 Convert sal_uLong to better integer types
The maximum value of the width in BrowserColumn is LONG_MAX. tools::Long
value range is the closest among other integer types. It is widely used
in these files. Also, other parameter types and return types have been
changed to match the width type.
Change-Id: Ia8b941a8ea02075a0d9b4d44675d5809005738bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157477
Tested-by: Hossein <hossein@libreoffice.org>
Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/brwbox.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx index 2bdd2b910465..42155eb1f45e 100644 --- a/include/svtools/brwbox.hxx +++ b/include/svtools/brwbox.hxx @@ -510,12 +510,12 @@ public: { Control::SetFont( rNewFont ); } // inserting, changing, removing and freezing of columns - void InsertHandleColumn( sal_uLong nWidth ); + void InsertHandleColumn( tools::Long nWidth ); void InsertDataColumn( sal_uInt16 nItemId, const OUString& rText, tools::Long nSize, HeaderBarItemBits nBits = HeaderBarItemBits::STDSTYLE, sal_uInt16 nPos = HEADERBAR_APPEND ); void SetColumnTitle( sal_uInt16 nColumnId, const OUString &rTitle ); - void SetColumnWidth( sal_uInt16 nColumnId, sal_uLong nWidth ); + void SetColumnWidth( sal_uInt16 nColumnId, tools::Long nWidth ); void SetColumnPos( sal_uInt16 nColumnId, sal_uInt16 nPos ); void FreezeColumn( sal_uInt16 nColumnId ); void RemoveColumn( sal_uInt16 nColumnId ); @@ -530,7 +530,7 @@ public: // access to dynamic values of cursor row OUString GetColumnTitle( sal_uInt16 nColumnId ) const; tools::Rectangle GetFieldRect( sal_uInt16 nColumnId ) const; - sal_uLong GetColumnWidth( sal_uInt16 nColumnId ) const; + tools::Long GetColumnWidth( sal_uInt16 nColumnId ) const; sal_uInt16 GetColumnId( sal_uInt16 nPos ) const; sal_uInt16 GetColumnPos( sal_uInt16 nColumnId ) const; bool IsFrozen( sal_uInt16 nColumnId ) const; @@ -619,7 +619,7 @@ public: The width is calculated so that the text fits completely, plus some margin. */ - sal_uLong GetDefaultColumnWidth( const OUString& _rText ) const; + tools::Long GetDefaultColumnWidth( const OUString& _rText ) const; /** GetCellText returns the text at the given position @param _nRow |