summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-08-31 04:12:27 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-09-01 05:54:03 (GMT)
commitb2bae6c955440345ee4fac412b86d154a2ce540a (patch)
tree72154c90730097256af7b541bec8c107d650565c /tools
parentcddf6992c2a00f894bfa04c68eee8fabbb424b2c (diff)
downloadQt-b2bae6c955440345ee4fac412b86d154a2ce540a.zip
Qt-b2bae6c955440345ee4fac412b86d154a2ce540a.tar.gz
Qt-b2bae6c955440345ee4fac412b86d154a2ce540a.tar.bz2
The declarative parser should only save comment text (and not /*,*/,//)
Reviewed-by: Roberto Raggi
Diffstat (limited to 'tools')
-rw-r--r--tools/linguist/lupdate/qdeclarative.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/linguist/lupdate/qdeclarative.cpp b/tools/linguist/lupdate/qdeclarative.cpp
index 8b19140..e6c2b98 100644
--- a/tools/linguist/lupdate/qdeclarative.cpp
+++ b/tools/linguist/lupdate/qdeclarative.cpp
@@ -402,9 +402,7 @@ bool loadQml(Translator &translator, const QString &filename, ConversionData &cd
// build up a list of comments that contain translation information.
for (int i = 0; i < driver.comments().size(); ++i) {
AST::SourceLocation loc = driver.comments().at(i);
- QString commentStr = code.mid(loc.offset+2, loc.length-2);
- if (commentStr.endsWith(QLatin1String("*/")))
- commentStr.chop(2);
+ QString commentStr = code.mid(loc.offset, loc.length);
if (trCalls.comments.isEmpty() || trCalls.comments.last().lastLine != int(loc.startLine)) {
Comment comment;