clang-format
This commit is contained in:
parent
d6b17cdf87
commit
1c6a3ffcc7
|
@ -31,7 +31,8 @@ QtkIOStream::QtkIOStream(const char * pFile, const char * pMode) :
|
||||||
qDebug() << "[Qtk::QtkIOStream] Invalid file open mode: " << mode << "\n";
|
qDebug() << "[Qtk::QtkIOStream] Invalid file open mode: " << mode << "\n";
|
||||||
}
|
}
|
||||||
if(!open) {
|
if(!open) {
|
||||||
qDebug() << "[Qtk::QtkIOStream] Could not open file: " << QString(pFile) << "\n";
|
qDebug() << "[Qtk::QtkIOStream] Could not open file: " << QString(pFile)
|
||||||
|
<< "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,10 +54,8 @@ size_t QtkIOStream::Read(void * pvBuffer, size_t pSize, size_t pCount) {
|
||||||
size_t QtkIOStream::Write(const void * pvBuffer, size_t pSize, size_t pCount) {
|
size_t QtkIOStream::Write(const void * pvBuffer, size_t pSize, size_t pCount) {
|
||||||
qint64 writeSize = mFile.write((char *)pvBuffer, pSize * pCount);
|
qint64 writeSize = mFile.write((char *)pvBuffer, pSize * pCount);
|
||||||
if(writeSize < 0) {
|
if(writeSize < 0) {
|
||||||
qDebug() << "[Qtk::QtkIOStream] Failed to write buffer with size ("
|
qDebug() << "[Qtk::QtkIOStream] Failed to write buffer with size (" << pSize
|
||||||
<< pSize
|
<< ") to file at: " << mFile.filesystemFileName().c_str() << "\n";
|
||||||
<< ") to file at: " << mFile.filesystemFileName().c_str()
|
|
||||||
<< "\n";
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return writeSize;
|
return writeSize;
|
||||||
|
|
Loading…
Reference in New Issue