mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Compare commits
4 Commits
70ab623c6e
...
d3123c16f7
Author | SHA1 | Date | |
---|---|---|---|
|
d3123c16f7 | ||
|
e685d31f5a | ||
|
458f39cc43 | ||
|
35b832f344 |
@ -1707,7 +1707,7 @@ void BufferView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
||||
string label = dit.innerParagraph().getLabelForXRef();
|
||||
if (!label.empty()) {
|
||||
// if the paragraph has a label, we refer to this
|
||||
string const arg = (type.empty()) ? label : label + " " + type;
|
||||
string const arg = (type.empty()) ? move(label) : move(label) + " " + type;
|
||||
lyx::dispatch(FuncRequest(LFUN_REFERENCE_INSERT, arg));
|
||||
break;
|
||||
} else {
|
||||
|
@ -798,7 +798,7 @@ docstring Encodings::convertLaTeXCommands(docstring const & str, bool const lite
|
||||
if (!cnvtd.empty()) {
|
||||
// it did, so we'll take that bit and proceed with what's left
|
||||
ret += cnvtd;
|
||||
val = rem;
|
||||
val = move(rem);
|
||||
continue;
|
||||
}
|
||||
// it's a command of some sort
|
||||
|
@ -33,7 +33,7 @@ void Statistics::update(CursorData const & cur, bool skip)
|
||||
{
|
||||
// early exit if the buffer has not changed since last time
|
||||
if (stats_id_ == cur.buffer()->id())
|
||||
return;
|
||||
return;
|
||||
|
||||
// reset counts
|
||||
*this = Statistics();
|
||||
|
@ -55,7 +55,7 @@ private:
|
||||
void update(Paragraph const & par, pos_type from = 0, pos_type to = -1);
|
||||
|
||||
// Indicate whether parts that produce no output should be counted.
|
||||
bool skip_no_output_;
|
||||
bool skip_no_output_ = false;
|
||||
// Used in the code to track status
|
||||
bool inword_ = false;
|
||||
// The buffer id at last statistics computation.
|
||||
|
@ -1128,7 +1128,7 @@ bool TextClass::readCiteEngine(Lexer & lexrc, ReadType rt, bool const add)
|
||||
if (numerical)
|
||||
numerical = getCiteStyles(ENGINE_TYPE_NUMERICAL).empty();
|
||||
if (notes)
|
||||
numerical = getCiteStyles(ENGINE_TYPE_NOTES).empty();
|
||||
notes = getCiteStyles(ENGINE_TYPE_NOTES).empty();
|
||||
if (defce)
|
||||
defce = getCiteStyles(ENGINE_TYPE_DEFAULT).empty();
|
||||
}
|
||||
|
@ -278,6 +278,8 @@ bool GuiLog::initialiseParams(string const & sdata)
|
||||
continue;
|
||||
}
|
||||
Index const * index = indiceslist.findShortcut(ci);
|
||||
if (!index)
|
||||
continue;
|
||||
string const name = to_utf8(index->index());
|
||||
logTypeCO->addItem(qt_(name), toqstr("index:" + stmp.absFileName()));
|
||||
}
|
||||
|
@ -440,7 +440,7 @@ docstring nomenclWidest(Buffer const & buffer)
|
||||
msymb.size();
|
||||
if (wx > w) {
|
||||
w = wx;
|
||||
symb = symbol;
|
||||
symb = move(symbol);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user