diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2017-01-09 18:20:29 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2017-01-10 13:17:47 +0000 |
commit | b103c744aee1f1715ecda6c6041ffc78e8b8ec74 (patch) | |
tree | fac481fc8789f5836ed5c5eea01bf0f2abcdd39e /src/shared | |
parent | d8e34ba886bca6de12c1df0508c0685787103a6a (diff) |
Refactor for loops
Use range based for loops where possible.
Use & for local const variables.
Fix some whitespaces and QLatin1Chars.
Change-Id: I0e02062cf91e135edae27c4eae78fd70a3613805
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/fontpanel/fontpanel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/fontpanel/fontpanel.cpp b/src/shared/fontpanel/fontpanel.cpp index 3358d8722..55cb138bd 100644 --- a/src/shared/fontpanel/fontpanel.cpp +++ b/src/shared/fontpanel/fontpanel.cpp @@ -206,9 +206,9 @@ void FontPanel::updateFamily(const QString &family) { // Update styles and trigger update of point sizes. // Try to maintain selection or select normal - const QString oldStyleString = styleString(); + const QString &oldStyleString = styleString(); - const QStringList styles = m_fontDatabase.styles(family); + const QStringList &styles = m_fontDatabase.styles(family); const bool hasStyles = !styles.empty(); m_styleComboBox->setCurrentIndex(-1); |