Kaydet (Commit) 0d516791 authored tarafından Julien Nabet's avatar Julien Nabet

Fix Possible inefficient checking for 'aChrSetArr' emptiness

üst 411d8c2d
...@@ -888,7 +888,7 @@ void MSWord_SdrAttrIter::NextPara( sal_uInt16 nPar ) ...@@ -888,7 +888,7 @@ void MSWord_SdrAttrIter::NextPara( sal_uInt16 nPar )
rtl_TextEncoding MSWord_SdrAttrIter::GetNextCharSet() const rtl_TextEncoding MSWord_SdrAttrIter::GetNextCharSet() const
{ {
if( aChrSetArr.size() ) if( !aChrSetArr.empty() )
return (rtl_TextEncoding)aChrSetArr[ aChrSetArr.size() - 1 ]; return (rtl_TextEncoding)aChrSetArr[ aChrSetArr.size() - 1 ];
return eNdChrSet; return eNdChrSet;
} }
......
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