mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-09 10:05:23 -04:00
Reduce number of unneeded copies
This patch aims at reducing the number of copies for obejcts that could be referenced rather than copied, because they're not modified during the computation.
This commit is contained in:
parent
a67a574b89
commit
da9afd3f6f
40 changed files with 90 additions and 90 deletions
|
@ -83,7 +83,7 @@ private:
|
|||
bool isCRLF(const QChar& c) const;
|
||||
bool isSpace(const QChar& c) const;
|
||||
bool isTab(const QChar& c) const;
|
||||
bool isEmptyRow(CsvRow row) const;
|
||||
bool isEmptyRow(const CsvRow& row) const;
|
||||
bool parseFile();
|
||||
void parseRecord();
|
||||
void parseField(CsvRow& row);
|
||||
|
@ -96,7 +96,7 @@ private:
|
|||
void clear();
|
||||
bool skipEndline();
|
||||
void skipLine();
|
||||
void appendStatusMsg(QString s, bool isCritical = false);
|
||||
void appendStatusMsg(const QString& s, bool isCritical = false);
|
||||
};
|
||||
|
||||
#endif // CSVPARSER_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue