diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmlprofiler/qmlprofilerapplication.cpp | 7 | ||||
-rw-r--r-- | tools/qmlprofiler/qmlprofilerapplication.h | 1 |
2 files changed, 1 insertions, 7 deletions
diff --git a/tools/qmlprofiler/qmlprofilerapplication.cpp b/tools/qmlprofiler/qmlprofilerapplication.cpp index 02dabea6e5..8633810790 100644 --- a/tools/qmlprofiler/qmlprofilerapplication.cpp +++ b/tools/qmlprofiler/qmlprofilerapplication.cpp @@ -73,13 +73,10 @@ static const char *features[] = { "inputevents" }; -static const char TraceFileExtension[] = ".qtd"; - QmlProfilerApplication::QmlProfilerApplication(int &argc, char **argv) : QCoreApplication(argc, argv), m_runMode(LaunchMode), m_process(0), - m_tracePrefix(QLatin1String("trace")), m_hostName(QLatin1String("127.0.0.1")), m_port(3768), m_pendingRequest(REQUEST_NONE), @@ -268,10 +265,8 @@ void QmlProfilerApplication::parseArguments() m_verbose = true; m_programArguments = parser.positionalArguments(); - if (!m_programArguments.isEmpty()) { + if (!m_programArguments.isEmpty()) m_programPath = m_programArguments.takeFirst(); - m_tracePrefix = QFileInfo(m_programPath).fileName(); - } if (m_runMode == LaunchMode && m_programPath.isEmpty()) { logError(tr("You have to specify either --attach or a program to start.")); diff --git a/tools/qmlprofiler/qmlprofilerapplication.h b/tools/qmlprofiler/qmlprofilerapplication.h index 25d9cf136d..f1bf6c3e93 100644 --- a/tools/qmlprofiler/qmlprofilerapplication.h +++ b/tools/qmlprofiler/qmlprofilerapplication.h @@ -104,7 +104,6 @@ private: QString m_programPath; QStringList m_programArguments; QProcess *m_process; - QString m_tracePrefix; QString m_hostName; quint16 m_port; |