[vlmc-devel] SettingsFile: Indent the setting files for debug builds
Hugo Beauzée-Luyssen
git at videolan.org
Mon Jul 4 15:34:35 CEST 2016
vlmc | branch: medialibrary | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sat Jun 4 10:41:33 2016 +0200| [b51ed1a3172e695c178751685f49b8a41ff97bd5] | committer: Hugo Beauzée-Luyssen
SettingsFile: Indent the setting files for debug builds
> https://code.videolan.org/videolan/vlmc/commit/b51ed1a3172e695c178751685f49b8a41ff97bd5
---
src/Settings/Settings.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/Settings/Settings.cpp b/src/Settings/Settings.cpp
index a23e356..c505a9c 100644
--- a/src/Settings/Settings.cpp
+++ b/src/Settings/Settings.cpp
@@ -134,7 +134,11 @@ Settings::save()
doc.setObject( top );
m_settingsFile->open( QFile::WriteOnly );
+#ifdef NDEBUG
m_settingsFile->write( doc.toJson( QJsonDocument::Compact ) );
+#else
+ m_settingsFile->write( doc.toJson( QJsonDocument::Indented ) );
+#endif
m_settingsFile->close();
return true;
}
More information about the Vlmc-devel
mailing list