diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2014-05-22 12:15:38 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-05-22 12:50:51 +0200 |
commit | f8eac3a44b64865220985ca5468269ac3db5b564 (patch) | |
tree | 52b4249b6e2d16a7fb48f4b7b837f2ca73788245 | |
parent | 9ec96de5556bf00cb00ed05f74b95c09b01b82b1 (diff) |
cppcheck: Function parameter 'rWidthsOf' should be passed by reference
Change-Id: I98ac89c6dd3556654b068769e58e4d24db2fe229
-rw-r--r-- | vcl/source/control/tabctrl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index abf714c76f62..6148a950d3e4 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -317,7 +317,7 @@ Size TabControl::ImplGetItemSize( ImplTabItem* pItem, long nMaxWidth ) // http://stackoverflow.com/questions/9071205/balanced-word-wrap-minimum-raggedness-in-php namespace MinimumRaggednessWrap { - std::deque<size_t> GetEndOfLineIndexes(const std::vector<sal_Int32> rWidthsOf, sal_Int32 nLineWidth) + std::deque<size_t> GetEndOfLineIndexes(const std::vector<sal_Int32>& rWidthsOf, sal_Int32 nLineWidth) { ++nLineWidth; |