mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
Fix some warnings
This commit is contained in:
parent
bfa495321a
commit
dd7a5f4eb6
@ -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<const unsigned long long int>(v));
|
||||
r_config_set_i(core_->config, k.toUtf8().constData(), static_cast<ut64>(v));
|
||||
}
|
||||
|
||||
void CutterCore::setConfig(const QString &k, bool v)
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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<PyCFunction>((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, ""},
|
||||
|
@ -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<int>(CommentsModel::NestedColumnCount)
|
||||
: static_cast<int>(CommentsModel::ColumnCount));
|
||||
}
|
||||
|
||||
QVariant CommentsModel::data(const QModelIndex &index, int role) const
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user