summaryrefslogtreecommitdiff
authorzecke <zecke>2004-12-24 21:31:52 (UTC)
committer zecke <zecke>2004-12-24 21:31:52 (UTC)
commitd36845f5f7e7d6bd49529524cdc9f39ce1164491 (patch) (side-by-side diff)
tree913eda7d766c40639f218d27303f9c3909069833
parent884f95d4ad11efa472919f8485ba518748109ccc (diff)
downloadopie-d36845f5f7e7d6bd49529524cdc9f39ce1164491.zip
opie-d36845f5f7e7d6bd49529524cdc9f39ce1164491.tar.gz
opie-d36845f5f7e7d6bd49529524cdc9f39ce1164491.tar.bz2
Whitespace changes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/config.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/config.cpp b/library/config.cpp
index 0bfb476..664ca34 100644
--- a/library/config.cpp
+++ b/library/config.cpp
@@ -462,20 +462,20 @@ void Config::write( const QString &fn )
return;
}
QString str;
QCString cstr;
QMap< QString, ConfigGroup >::Iterator g_it = groups.begin();
for ( ; g_it != groups.end(); ++g_it ) {
- str += "[" + g_it.key() + "]\n";
- ConfigGroup::Iterator e_it = ( *g_it ).begin();
- for ( ; e_it != ( *g_it ).end(); ++e_it )
- str += e_it.key() + " = " + *e_it + "\n";
+ str += "[" + g_it.key() + "]\n";
+ ConfigGroup::Iterator e_it = ( *g_it ).begin();
+ for ( ; e_it != ( *g_it ).end(); ++e_it )
+ str += e_it.key() + " = " + *e_it + "\n";
}
cstr = str.utf8();
int total_length;
total_length = f.writeBlock( cstr.data(), cstr.length() );
if ( total_length != int(cstr.length()) ) {
QMessageBox::critical( 0, QObject::tr("Out of Space"),
QObject::tr("There was a problem creating\nConfiguration Information \nfor this program.\n\nPlease free up some space and\ntry again.") );
@@ -553,17 +553,17 @@ void Config::read()
/*!
\internal
*/
bool Config::parse( const QString &l )
{
QString line = l.stripWhiteSpace();
if ( line [0] == QChar ( '#' ))
- return true; // ignore comments
+ return true; // ignore comments
if ( line[ 0 ] == QChar( '[' ) ) {
QString gname = line;
gname = gname.remove( 0, 1 );
if ( gname[ (int)gname.length() - 1 ] == QChar( ']' ) )
gname = gname.remove( gname.length() - 1, 1 );
git = groups.insert( gname, ConfigGroup() );
} else if ( !line.isEmpty() ) {