// Therefore, it should only be used for breaking and merging paragraphs
// We need a copy here because the character at fromPos is going to be erased.
- Font const & tmpFont = fromPar.getFontSettings(params, fromPos);
- Change const & tmpChange = fromPar.lookupChange(fromPos);
+ Font const tmpFont = fromPar.getFontSettings(params, fromPos);
+ Change const tmpChange = fromPar.lookupChange(fromPos);
if (Inset * tmpInset = fromPar.getInset(fromPos)) {
fromPar.releaseInset(fromPos);
// Store the characters to be transposed (including font information).
char_type const char1 = par.getChar(pos1);
- Font const & font1 =
+ Font const font1 =
par.getFontSettings(cur.buffer()->params(), pos1);
char_type const char2 = par.getChar(pos2);
- Font const & font2 =
+ Font const font2 =
par.getFontSettings(cur.buffer()->params(), pos2);
// And finally, we are ready to perform the transposition.
// Try implicit word selection
// If there is a change in the language the implicit word selection
// is disabled.
- CursorSlice const & resetCursor = cur.top();
+ CursorSlice const resetCursor = cur.top();
bool const implicitSelection =
font.language() == ignore_language
&& font.fontInfo().number() == FONT_IGNORE