Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt Creator 4.7.0-beta1
-
None
Description
main.h:
#ifndef MAIN_H #define MAIN_H #include <QChar> QChar foo(const QChar &character); #endif // MAIN_H
main.cpp:
#include "main.h" QChar foo(const QChar &character) { return character; } int main() {}
When applying the fixits for "warning: Pass small and trivially-copyable type by value (const class QChar &) [-Wclazy-function-args-by-value]" main.cpp ends up as:
#include "main.h" QChar foo(QChar character) { return character; } int maiQChar charactern() {}