diff --git a/src/Cutter.cpp b/src/Cutter.cpp index 35ec9303..fa090218 100644 --- a/src/Cutter.cpp +++ b/src/Cutter.cpp @@ -524,7 +524,7 @@ void CutterCore::setConfig(const QString &k, const QString &v) void CutterCore::setConfig(const QString &k, int v) { CORE_LOCK(); - r_config_set_i(core_->config, k.toUtf8().constData(), static_cast(v)); + r_config_set_i(core_->config, k.toUtf8().constData(), static_cast(v)); } void CutterCore::setConfig(const QString &k, bool v) diff --git a/src/dialogs/AsyncTaskDialog.cpp b/src/dialogs/AsyncTaskDialog.cpp index 42fa8211..56240515 100644 --- a/src/dialogs/AsyncTaskDialog.cpp +++ b/src/dialogs/AsyncTaskDialog.cpp @@ -7,8 +7,8 @@ AsyncTaskDialog::AsyncTaskDialog(AsyncTask::Ptr task, QWidget *parent) : QDialog(parent), - task(task), - ui(new Ui::AsyncTaskDialog) + ui(new Ui::AsyncTaskDialog), + task(task) { ui->setupUi(this); diff --git a/src/utils/PythonAPI.cpp b/src/utils/PythonAPI.cpp index 0e1e613c..892e9c5a 100644 --- a/src/utils/PythonAPI.cpp +++ b/src/utils/PythonAPI.cpp @@ -180,7 +180,7 @@ PyObject *api_internal_thread_set_async_exc(PyObject *, PyObject *args) PyMethodDef CutterInternalMethods[] = { { - "launch_ipykernel", (PyCFunction)api_internal_launch_ipykernel, METH_VARARGS | METH_KEYWORDS, + "launch_ipykernel", reinterpret_cast((void *)api_internal_launch_ipykernel), METH_VARARGS | METH_KEYWORDS, "Launch an IPython Kernel in a subinterpreter" }, {"kernel_interface_send_signal", (PyCFunction)api_internal_kernel_interface_send_signal, METH_VARARGS, ""}, diff --git a/src/widgets/CommentsWidget.cpp b/src/widgets/CommentsWidget.cpp index e7c38657..d15f92a2 100644 --- a/src/widgets/CommentsWidget.cpp +++ b/src/widgets/CommentsWidget.cpp @@ -59,7 +59,9 @@ int CommentsModel::rowCount(const QModelIndex &parent) const int CommentsModel::columnCount(const QModelIndex&) const { - return (isNested() ? CommentsModel::NestedColumnCount : CommentsModel::ColumnCount); + return (isNested() + ? static_cast(CommentsModel::NestedColumnCount) + : static_cast(CommentsModel::ColumnCount)); } QVariant CommentsModel::data(const QModelIndex &index, int role) const diff --git a/src/widgets/RelocsWidget.cpp b/src/widgets/RelocsWidget.cpp index 13e3e446..42682bbd 100644 --- a/src/widgets/RelocsWidget.cpp +++ b/src/widgets/RelocsWidget.cpp @@ -36,6 +36,7 @@ QVariant RelocsModel::data(const QModelIndex &index, int role) const default: break; } + break; case RelocsModel::RelocDescriptionRole: return QVariant::fromValue(reloc); case RelocsModel::AddressRole: