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