Details
-
Technical task
-
Resolution: Done
-
P2: Important
-
None
-
4ea581c95ae9704b250591c5d4d9b0517f5b62f2
Description
If I initialize a member of a class using a C++11 initializer list like this:
Foo:Foo(): m_foo{1, 2, 3}
{
tr("foo");
}
then the tr() call in the constructor is not found, instead lupdate gives the error message "tr() cannot be called without context". It doesn't matter if I add () around {}. If I initialize the member using any other method the tr() call will be found and extracted.
Attachments
For Gerrit Dashboard: QTBUG-34128 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
154534,8 | lupdate: Explicitly handle C++ member initializer lists | 5.6 | qt/qttools | Status: MERGED | +2 | 0 |