Commit 1ae9940b authored by Christian Kamm's avatar Christian Kamm
Browse files

QuickFix: Add a warning to RefactoringChanges::removeFile.

parent 03b443b8
...@@ -132,7 +132,8 @@ bool RefactoringChanges::removeFile(const QString &fileName) ...@@ -132,7 +132,8 @@ bool RefactoringChanges::removeFile(const QString &fileName)
if (!QFile::exists(fileName)) if (!QFile::exists(fileName))
return false; return false;
// ### delete! // ### implement!
qWarning() << "RefactoringChanges::removeFile is not implemented";
return true; return true;
} }
...@@ -224,7 +225,6 @@ RefactoringFile::~RefactoringFile() ...@@ -224,7 +225,6 @@ RefactoringFile::~RefactoringFile()
const QByteArray &newContents = doc->toPlainText().toUtf8(); const QByteArray &newContents = doc->toPlainText().toUtf8();
QFile file(m_fileName); QFile file(m_fileName);
file.open(QFile::WriteOnly); file.open(QFile::WriteOnly);
//file->resize(newContents.size()); // ### necessary?
file.write(newContents); file.write(newContents);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment