aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/KvsObject_file.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2011-05-08 22:25:35 +0000
committerGravatar Fabio Bas2011-05-08 22:25:35 +0000
commit3d8714d797ce5b09cea2e3b36edee2fc231f28a1 (patch)
tree5b13cd3775c52333155ff349f3e45dc24b271b04 /src/modules/objects/KvsObject_file.cpp
parentFix fix (diff)
downloadKVIrc-3d8714d797ce5b09cea2e3b36edee2fc231f28a1.tar.gz
KVIrc-3d8714d797ce5b09cea2e3b36edee2fc231f28a1.tar.bz2
KVIrc-3d8714d797ce5b09cea2e3b36edee2fc231f28a1.zip
Objects module: fixed indentation (2nd part)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5837 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/KvsObject_file.cpp')
-rw-r--r--src/modules/objects/KvsObject_file.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/modules/objects/KvsObject_file.cpp b/src/modules/objects/KvsObject_file.cpp
index f8b5c8870..bfc827588 100644
--- a/src/modules/objects/KvsObject_file.cpp
+++ b/src/modules/objects/KvsObject_file.cpp
@@ -90,7 +90,7 @@ const QIODevice::OpenMode mod_cod[] = {
Attempts to open the file in specified mode or modes "sum".
Valid modes are:[br]
[pre]
- Raw - raw, non-buffered access[br]
+ Raw - raw, non-buffered access[br]
ReadOnly - opens the file read-only[br]
WriteOnly - opens the file write-only[br]
ReadWrite - opens the file in read-write mode[br]
@@ -235,24 +235,23 @@ KVSO_CLASS_FUNCTION(file,open)
{
for ( int idx=0;idx<modes.count();idx++)
{
- int found=false;
- for(unsigned int j = 0; j < mod_num; j++)
+ int found=false;
+ for(unsigned int j = 0; j < mod_num; j++)
{
-
- if(KviQString::equalCI(modes.at(idx), mod_tbl[j]))
+ if(KviQString::equalCI(modes.at(idx), mod_tbl[j]))
{
- mod=mod_cod[j];
- found=true;
+ mod=mod_cod[j];
+ found=true;
break;
}
}
- if(found)
+ if(found)
sum = sum | mod;
else
c->warning(__tr2qs_ctx("No such open mode '%Q'","objects"),&modes.at(idx));
}
}
- c->returnValue()->setBoolean(m_pFile->open(sum));
+ c->returnValue()->setBoolean(m_pFile->open(sum));
return true;
}
@@ -560,9 +559,9 @@ KVSO_CLASS_FUNCTION(file,readLine)
CHECK_INTERNAL_POINTER(m_pFile)
CHECK_FILE_IS_OPEN
QString buffer;
- //bool ok=KviFileUtils::readLine(m_pFile,buffer);
- buffer=m_pFile->readLine();
- c->returnValue()->setString(buffer);
+ //bool ok=KviFileUtils::readLine(m_pFile,buffer);
+ buffer=m_pFile->readLine();
+ c->returnValue()->setString(buffer);
return true;
}