Skip to content
Commit d4418504 authored by Kevin Funk's avatar Kevin Funk Committed by Waqar Ahmed
Browse files

Fix GCC warning about dangling reference

Fixes:

```
.../src/core/tokenizer.cpp:130:33: warning: possibly dangling reference to a temporary [-Wdangling-reference]
  130 |     const TextBreaks::Position &textBreak = this->breaks().at(itemPosition);
      |                                 ^~~~~~~~~
.../src/core/tokenizer.cpp:130:62: note: the temporary was destroyed at the end of the full expression ‘Sonnet::BreakTokenizerPrivate::breaks() const().QList<Sonnet::TextBreaks::Position>::at(((qsizetype)((Sonnet::BreakTokenizerPrivate*)this)->Sonnet::BreakTokenizerPrivate::itemPosition))’
  130 |     const TextBreaks::Position &textBreak = this->breaks().at(itemPosition);
      |                                             ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
```
parent b4b93ed0
Pipeline #470862 passed with stage
in 1 minute and 56 seconds
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