[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Sat Dec 23 16:23:28 UTC 2017


 sw/source/filter/html/htmltab.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a7a61e3347bc74d6f9cb1f82ce4c15db54d0f008
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Dec 22 21:29:20 2017 +0000

    ofz#4723 use vector::at
    
    Change-Id: I07ca0d9c0dc6d15f089d5c4832bb30e1ef62ef04
    Reviewed-on: https://gerrit.libreoffice.org/46999
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx
index 7d40e971d559..723d9544d21d 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -778,7 +778,7 @@ inline HTMLTableCell *HTMLTableRow::GetCell( sal_uInt16 nCell ) const
 {
     OSL_ENSURE( nCell < m_xCells->size(),
         "invalid cell index in HTML table row" );
-    return (*m_xCells)[nCell].get();
+    return m_xCells->at(nCell).get();
 }
 
 void HTMLTableRow::Expand( sal_uInt16 nCells, bool bOneCell )


More information about the Libreoffice-commits mailing list