diff options
| author | 2014-11-21 14:34:32 +0000 | |
|---|---|---|
| committer | 2014-11-21 14:34:32 +0000 | |
| commit | 43e0468a233a49b1010f34c5ce888204fa4e9416 (patch) | |
| tree | b1f97b1b9fdfc72677b935d34e26c70fa7030feb /src/modules/file/libkvifile.cpp | |
| parent | Trivial typo (diff) | |
| download | KVIrc-43e0468a233a49b1010f34c5ce888204fa4e9416.tar.gz KVIrc-43e0468a233a49b1010f34c5ce888204fa4e9416.tar.bz2 KVIrc-43e0468a233a49b1010f34c5ce888204fa4e9416.zip | |
- massive trailing whitespace cleanup (yes, one of these "you can hate me for that" commits)
- apply patch by d00p: show the correct protocol version instead of just "SSLv3/TLSv1", thanks!
- fix compilation on qt 5.4 on windows
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6398 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/file/libkvifile.cpp')
| -rw-r--r-- | src/modules/file/libkvifile.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/file/libkvifile.cpp b/src/modules/file/libkvifile.cpp index b9cd95acc..559af20b1 100644 --- a/src/modules/file/libkvifile.cpp +++ b/src/modules/file/libkvifile.cpp @@ -46,7 +46,7 @@ #if defined(COMPILE_SSL_SUPPORT) - // Apple deprecated openssl since osx 10.7: + // Apple deprecated openssl since osx 10.7: #ifdef DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER #undef DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER @@ -262,7 +262,7 @@ static bool file_kvs_cmd_writeBytes(KviKvsModuleCommandCall * c) { QString szFileName; KviKvsArray * pArray = NULL; - + KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETER("filename",KVS_PT_NONEMPTYSTRING,0,szFileName) KVSM_PARAMETER("dataArray",KVS_PT_ARRAY,0,pArray) @@ -1107,7 +1107,7 @@ static bool file_kvs_cmd_writeLines(KviKvsModuleCommandCall * c) bool bLocal8Bit = c->switches()->find('l',"local-8-bit"); bool bNoSeparator = c->switches()->find('n',"no-separator"); bool bAddCR = c->switches()->find('c',"crlf"); - + if(!f.open(QFile::WriteOnly | (bAppend ? QFile::Append : QFile::Truncate))) { if(!c->switches()->find('q',"quiet")) @@ -1410,7 +1410,7 @@ static bool file_kvs_fnc_diskSpace(KviKvsModuleFunctionCall * c) KVSM_PARAMETERS_END(c) if(szPath.isEmpty()) szPath = "."; - + const char * pcPath = szPath.toUtf8().data(); long long int fTotal; long long int fFree; @@ -1467,7 +1467,7 @@ static bool file_kvs_fnc_digest(KviKvsModuleFunctionCall * c) c->warning(__tr2qs("Can't open the file '%Q' for reading"),&szFile); return true; } - + QByteArray content = file.readAll(); if(content.isEmpty()) { |
