starmath/source/utility.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 7e8bf2dbe521e3ef51d318b1d66c33bd268f9479 Author: Stephan Bergmann <sberg...@redhat.com> Date: Wed Mar 8 10:57:47 2017 +0100 loplugin:loopvartoosmall Change-Id: I394c1e291ef4fb637d871d9cb8cc563e6e787ddb diff --git a/starmath/source/utility.cxx b/starmath/source/utility.cxx index b0ad1db..6ef71fb 100644 --- a/starmath/source/utility.cxx +++ b/starmath/source/utility.cxx @@ -148,11 +148,9 @@ IMPL_LINK_NOARG( SmFontPickListBox, SelectHdl, ListBox&, void ) SmFontPickListBox& SmFontPickListBox::operator=(const SmFontPickList& rList) { - sal_uInt16 nPos; - *static_cast<SmFontPickList *>(this) = rList; - for (nPos = 0; nPos < aFontVec.size(); nPos++) + for (decltype(aFontVec)::size_type nPos = 0; nPos < aFontVec.size(); nPos++) InsertEntry(lcl_GetStringItem(aFontVec[nPos]), nPos); if (aFontVec.size() > 0) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits