forked from qt-creator/qt-creator
debugger: cleanup temporary file used for determining Qt's namespace
Change-Id: I19a99fc54412557c51c792d2c11abb64f5848a42 Reviewed-on: http://codereview.qt.nokia.com/269 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -4712,7 +4712,8 @@ void GdbEngine::handleNamespaceExtraction(const GdbResponse &response)
|
|||||||
QFile file(response.cookie.toString());
|
QFile file(response.cookie.toString());
|
||||||
file.open(QIODevice::ReadOnly);
|
file.open(QIODevice::ReadOnly);
|
||||||
QByteArray ba = file.readAll();
|
QByteArray ba = file.readAll();
|
||||||
//file.remove();
|
file.close();
|
||||||
|
file.remove();
|
||||||
int pos = ba.indexOf("7QString9fromAscii");
|
int pos = ba.indexOf("7QString9fromAscii");
|
||||||
int pos1 = pos - 1;
|
int pos1 = pos - 1;
|
||||||
while (pos1 > 0 && ba.at(pos1) != 'N' && ba.at(pos1) > '@')
|
while (pos1 > 0 && ba.at(pos1) != 'N' && ba.at(pos1) > '@')
|
||||||
|
|||||||
Reference in New Issue
Block a user