diff options
author | Friedemann Kleint <[email protected]> | 2012-08-22 11:58:33 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2012-08-22 12:24:24 +0200 |
commit | 2f51579fe4bf947784135f02e10f129cc75ad695 (patch) | |
tree | 885612432ba452e2af685c47fe4d5ef6310827c8 /src/plugins/debugger/watchhandler.cpp | |
parent | 0418e6dc64b196c8db4050f53a42d3f5bf721e8b (diff) |
Debugger: Fix string usages.
- Compile with QT_NO_CAST_FROM_ASCII.
- Remove single character string constants.
Change-Id: Icece98619b6c30e047d3fce00e6ae74bbcd53c67
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 1805d6e5898..4d57dc478bc 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -28,6 +28,8 @@ ** **************************************************************************/ +#define QT_NO_CAST_FROM_ASCII + #include "watchhandler.h" #include "breakhandler.h" @@ -1413,7 +1415,7 @@ void WatchModel::showInEditorHelper(QString *contents, WatchItem *item, int dept contents->append(tab); contents->append(item->value); contents->append(tab); - contents->append(item->type); + contents->append(QString::fromLatin1(item->type)); contents->append(nl); foreach (WatchItem *child, item->children) showInEditorHelper(contents, child, depth + 1); |