diff options
-rw-r--r-- | include/svx/gridctrl.hxx | 4 | ||||
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx index 5046f638e7d8..8ab2b8a6d193 100644 --- a/include/svx/gridctrl.hxx +++ b/include/svx/gridctrl.hxx @@ -499,9 +499,9 @@ public: getContext() const { return m_xContext; } /// returns <TRUE/> if the text of the given cell can be copied into the clipboard - bool canCopyCellText(sal_Int32 _nRow, sal_Int16 _nColId); + bool canCopyCellText(sal_Int32 _nRow, sal_uInt16 _nColId); /// copies the text of the given cell into the clipboard - void copyCellText(sal_Int32 _nRow, sal_Int16 _nColId); + void copyCellText(sal_Int32 _nRow, sal_uInt16 _nColId); // select in listener handling void setGridListener( FmGridListener* _pListener ) { m_pGridListener = _pListener; } diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index 5348090cbb11..d677cd3b1136 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -2824,7 +2824,7 @@ void DbGridControl::StartDrag( sal_Int8 /*nAction*/, const Point& rPosPixel ) } } -bool DbGridControl::canCopyCellText(sal_Int32 _nRow, sal_Int16 _nColId) +bool DbGridControl::canCopyCellText(sal_Int32 _nRow, sal_uInt16 _nColId) { return (_nRow >= 0) && (_nRow < GetRowCount()) @@ -2832,7 +2832,7 @@ bool DbGridControl::canCopyCellText(sal_Int32 _nRow, sal_Int16 _nColId) && (_nColId <= ColCount()); } -void DbGridControl::copyCellText(sal_Int32 _nRow, sal_Int16 _nColId) +void DbGridControl::copyCellText(sal_Int32 _nRow, sal_uInt16 _nColId) { DBG_ASSERT(canCopyCellText(_nRow, _nColId), "DbGridControl::copyCellText: invalid call!"); DbGridColumn* pColumn = m_aColumns[ GetModelColumnPos(_nColId) ]; |