forked from qt-creator/qt-creator
CppEditor: Fix MSVC warnings
Implicit size_t -> int conversions. Change-Id: I8c792fb692d1c5f3572aa0037ca2f20192cdc903 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
0566f4e5a1
commit
2674e9c62e
@@ -8534,7 +8534,7 @@ public:
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
int rowCount(const QModelIndex & /*parent*/ = {}) const override { return infos.size(); }
|
int rowCount(const QModelIndex & /*parent*/ = {}) const override { return int(infos.size()); }
|
||||||
int columnCount(const QModelIndex & /*parent*/ = {}) const override { return 4; }
|
int columnCount(const QModelIndex & /*parent*/ = {}) const override { return 4; }
|
||||||
QVariant data(const QModelIndex &index, int role) const override
|
QVariant data(const QModelIndex &index, int role) const override
|
||||||
{
|
{
|
||||||
@@ -9182,7 +9182,7 @@ private:
|
|||||||
void generateConstructor(std::vector<ConstructorMemberInfo *> members,
|
void generateConstructor(std::vector<ConstructorMemberInfo *> members,
|
||||||
const ParentClassConstructors &parentClassConstructors)
|
const ParentClassConstructors &parentClassConstructors)
|
||||||
{
|
{
|
||||||
auto constructorLocation = m_settings->determineSetterLocation(members.size());
|
auto constructorLocation = m_settings->determineSetterLocation(int(members.size()));
|
||||||
if (constructorLocation == CppQuickFixSettings::FunctionLocation::CppFile
|
if (constructorLocation == CppQuickFixSettings::FunctionLocation::CppFile
|
||||||
&& !hasSourceFile())
|
&& !hasSourceFile())
|
||||||
constructorLocation = CppQuickFixSettings::FunctionLocation::OutsideClass;
|
constructorLocation = CppQuickFixSettings::FunctionLocation::OutsideClass;
|
||||||
@@ -9304,7 +9304,7 @@ private:
|
|||||||
m_locator.constructorDeclarationInClass(tu,
|
m_locator.constructorDeclarationInClass(tu,
|
||||||
m_classAST,
|
m_classAST,
|
||||||
m_accessSpec,
|
m_accessSpec,
|
||||||
members.size()),
|
int(members.size())),
|
||||||
inClassDeclaration);
|
inClassDeclaration);
|
||||||
|
|
||||||
if (constructorLocation == CppQuickFixSettings::FunctionLocation::CppFile) {
|
if (constructorLocation == CppQuickFixSettings::FunctionLocation::CppFile) {
|
||||||
|
|||||||
Reference in New Issue
Block a user