diff --git a/src/IP_Edit.cpp b/src/IP_Edit.cpp index 5b84703..a1d5c72 100644 --- a/src/IP_Edit.cpp +++ b/src/IP_Edit.cpp @@ -74,7 +74,7 @@ void CustomLineEdit::keyPressEvent(QKeyEvent* event) } // Jump forward from last postion by right arrow - if (cursorPos == text().count()) { + if (cursorPos == text().length()) { if (key == Qt::Key_Right) { emit jumpForward(); event->accept(); diff --git a/src/System_Info.cpp b/src/System_Info.cpp index 5afaa2e..cc7fbd1 100644 --- a/src/System_Info.cpp +++ b/src/System_Info.cpp @@ -2577,7 +2577,7 @@ bool System_Info::Scan_USB_Proc(QList& list) #include #include -void System_Info::Get_Free_Memory_Size(int& allRAM, int& freeRAM) +void System_Info::Get_Free_Memory_Size(size_t& allRAM, size_t& freeRAM) { // proc fs is exists? if (QFile::exists("/proc/meminfo")) { @@ -2585,7 +2585,7 @@ void System_Info::Get_Free_Memory_Size(int& allRAM, int& freeRAM) if (!proc_file.open(QIODevice::ReadOnly | QIODevice::Text)) { AQDebug("int System_Info::Get_Free_Memory_Size()", - "void System_Info::Get_Free_Memory_Size( int &allRAM, int " + "void System_Info::Get_Free_Memory_Size( size_t &allRAM, size_t " "&freeRAM )"); } else { diff --git a/src/main.h b/src/main.h index dba587a..9d5c00b 100644 --- a/src/main.h +++ b/src/main.h @@ -56,7 +56,7 @@ class AQEMU_Main : public QObject void upgrade_settings(); int find_data_folders(); void log_settings(); - static int root_warning(); + int root_warning(); void vm_dir_exists_or_create(); std::unique_ptr settings;