┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-05-26 13:46:10 +0200
committerPeter Penz <[email protected]>2012-05-26 13:46:30 +0200
commite76ec71536d7b2a82b22e20474838a244a4bb8d6 (patch)
tree6192106fb15f22b4d82855523a915d3b832b776c /src/settings
parent073f8cae13f2637c0bf2f5611295e103418d52ff (diff)
Minor coding style fixes
Diffstat (limited to 'src/settings')
-rw-r--r--src/settings/applyviewpropsjob.cpp4
-rw-r--r--src/settings/general/previewssettingspage.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/settings/applyviewpropsjob.cpp b/src/settings/applyviewpropsjob.cpp
index 7ed9302c7..4bc77caee 100644
--- a/src/settings/applyviewpropsjob.cpp
+++ b/src/settings/applyviewpropsjob.cpp
@@ -51,9 +51,9 @@ ApplyViewPropsJob::~ApplyViewPropsJob()
void ApplyViewPropsJob::slotEntries(KIO::Job*, const KIO::UDSEntryList& list)
{
- foreach(const KIO::UDSEntry& entry, list) {
+ foreach (const KIO::UDSEntry& entry, list) {
const QString name = entry.stringValue(KIO::UDSEntry::UDS_NAME);
- if ((name != ".") && (name != "..") && entry.isDir()) {
+ if (name != QLatin1String(".") && name != QLatin1String("..") && entry.isDir()) {
++m_progress;
KUrl url(m_dir);
diff --git a/src/settings/general/previewssettingspage.cpp b/src/settings/general/previewssettingspage.cpp
index c76f4ca24..38b61b996 100644
--- a/src/settings/general/previewssettingspage.cpp
+++ b/src/settings/general/previewssettingspage.cpp
@@ -188,7 +188,7 @@ void PreviewsSettingsPage::loadSettings()
// Note that the upgrade to the correct plugin is done already in KFilePreviewGenerator. However, if Konqueror is
// opened in web browsing mode and the Settings dialog is opened, we might end up here before KFilePreviewGenerator's
// constructor is ever called -> the plugin replacement should be done here as well.
- if(m_enabledPreviewPlugins.contains(QLatin1String("jpegrotatedthumbnail"))) {
+ if (m_enabledPreviewPlugins.contains(QLatin1String("jpegrotatedthumbnail"))) {
m_enabledPreviewPlugins.removeAll(QLatin1String("jpegrotatedthumbnail"));
m_enabledPreviewPlugins.append(QLatin1String("jpegthumbnail"));
globalConfig.writeEntry("Plugins", m_enabledPreviewPlugins);