Kaydet (Commit) bacd723b authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Fix build - the same symbol defined on 2 places.

üst a47471ed
...@@ -40,13 +40,13 @@ namespace accessibility ...@@ -40,13 +40,13 @@ namespace accessibility
{ {
namespace namespace
{ {
void checkIndex_Impl( sal_Int32 _nIndex, const ::rtl::OUString& _sText ) throw (::com::sun::star::lang::IndexOutOfBoundsException) static void checkIndex_Impl( sal_Int32 _nIndex, const ::rtl::OUString& _sText ) throw (::com::sun::star::lang::IndexOutOfBoundsException)
{ {
if ( _nIndex >= _sText.getLength() ) if ( _nIndex >= _sText.getLength() )
throw ::com::sun::star::lang::IndexOutOfBoundsException(); throw ::com::sun::star::lang::IndexOutOfBoundsException();
} }
sal_Int32 getIndex_Impl( sal_Int32 _nRow, sal_uInt16 _nColumn, sal_uInt16 _nColumnCount ) static sal_Int32 getIndex_Impl( sal_Int32 _nRow, sal_uInt16 _nColumn, sal_uInt16 _nColumnCount )
{ {
return _nRow * _nColumnCount + _nColumn; return _nRow * _nColumnCount + _nColumn;
} }
......
...@@ -40,16 +40,13 @@ namespace accessibility ...@@ -40,16 +40,13 @@ namespace accessibility
{ {
namespace namespace
{ {
void checkIndex_Impl( sal_Int32 _nIndex, const ::rtl::OUString& _sText ) throw (::com::sun::star::lang::IndexOutOfBoundsException) // FIXME this is a copy'n'paste from
// source/extended/AccessibleBrowseBoxTableCell.cxx, get rid of that...
static void checkIndex_Impl( sal_Int32 _nIndex, const ::rtl::OUString& _sText ) throw (::com::sun::star::lang::IndexOutOfBoundsException)
{ {
if ( _nIndex >= _sText.getLength() ) if ( _nIndex >= _sText.getLength() )
throw ::com::sun::star::lang::IndexOutOfBoundsException(); throw ::com::sun::star::lang::IndexOutOfBoundsException();
} }
sal_Int32 getIndex_Impl( sal_Int32 _nRow, sal_uInt16 _nColumn, sal_uInt16 _nColumnCount )
{
return _nRow * _nColumnCount + _nColumn;
}
} }
using namespace ::com::sun::star::lang; using namespace ::com::sun::star::lang;
using namespace utl; using namespace utl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment