parent
e43c078c5e
commit
1422487769
|
@ -239,7 +239,6 @@
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</function>
|
||||||
|
|
||||||
<container id="qtContainer" opLessAllowed="false">
|
<container id="qtContainer" opLessAllowed="false">
|
||||||
<type templateParameter="0"/>
|
<type templateParameter="0"/>
|
||||||
<size>
|
<size>
|
||||||
|
@ -261,7 +260,6 @@
|
||||||
<function name="constEnd" yields="end-iterator"/>
|
<function name="constEnd" yields="end-iterator"/>
|
||||||
</access>
|
</access>
|
||||||
</container>
|
</container>
|
||||||
|
|
||||||
<container id="qtString" startPattern="QString" endPattern="" inherits="qtContainer" opLessAllowed="true">
|
<container id="qtString" startPattern="QString" endPattern="" inherits="qtContainer" opLessAllowed="true">
|
||||||
<type string="std-like"/>
|
<type string="std-like"/>
|
||||||
<size>
|
<size>
|
||||||
|
@ -273,7 +271,6 @@
|
||||||
<function name="back" yields="item"/>
|
<function name="back" yields="item"/>
|
||||||
</access>
|
</access>
|
||||||
</container>
|
</container>
|
||||||
|
|
||||||
<define name="Q_DECL_EXPORT" value=""/>
|
<define name="Q_DECL_EXPORT" value=""/>
|
||||||
<define name="Q_DECL_IMPORT" value=""/>
|
<define name="Q_DECL_IMPORT" value=""/>
|
||||||
<define name="Q_DECLARE_FLAGS(x,y)" value=""/>
|
<define name="Q_DECLARE_FLAGS(x,y)" value=""/>
|
||||||
|
|
|
@ -13,14 +13,16 @@ public:
|
||||||
char &operator[](int pos);
|
char &operator[](int pos);
|
||||||
};
|
};
|
||||||
|
|
||||||
void QString1(QString s) {
|
void QString1(QString s)
|
||||||
|
{
|
||||||
for (int i = 0; i <= s.size(); ++i) {
|
for (int i = 0; i <= s.size(); ++i) {
|
||||||
// cppcheck-suppress stlOutOfBounds
|
// cppcheck-suppress stlOutOfBounds
|
||||||
s[i] = 'x';
|
s[i] = 'x';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int QString2() {
|
int QString2()
|
||||||
|
{
|
||||||
QString s;
|
QString s;
|
||||||
// cppcheck-suppress ignoredReturnValue
|
// cppcheck-suppress ignoredReturnValue
|
||||||
// cppcheck-suppress reademptycontainer
|
// cppcheck-suppress reademptycontainer
|
||||||
|
|
Loading…
Reference in New Issue