minor fix

This commit is contained in:
Roy Qu 2022-04-25 12:43:23 +08:00
parent 16cb8faf85
commit 81f4d98d5f
11 changed files with 11 additions and 11 deletions

View File

@ -973,7 +973,6 @@ void MainWindow::updateClassBrowserForEditor(Editor *editor)
if (!editor) {
mClassBrowserModel.setParser(nullptr);
mClassBrowserModel.setCurrentFile("");
mClassBrowserModel.clear();
return;
}
if (mQuitting)

View File

@ -132,7 +132,6 @@ struct StatementMatchPosition{
using PStatementMathPosition = std::shared_ptr<StatementMatchPosition>;
struct Statement;
using PStatement = std::shared_ptr<Statement>;
using StatementList = QList<PStatement>;

View File

@ -88,7 +88,7 @@ void EditorSnippetWidget::on_btnAdd_clicked()
ui->tblSnippets->edit(mModel.lastSnippetCaption());
}
void EditorSnippetWidget::updateIcons(const QSize &size)
void EditorSnippetWidget::updateIcons(const QSize &/*size*/)
{
pIconsManager->setIcon(ui->btnAdd,IconsManager::ACTION_MISC_ADD);
pIconsManager->setIcon(ui->btnRemove,IconsManager::ACTION_MISC_REMOVE);

View File

@ -81,7 +81,7 @@ void EnvironmentFoldersWidget::on_btnResetDefault_clicked()
emit shouldQuitApp();
}
void EnvironmentFoldersWidget::updateIcons(const QSize &size)
void EnvironmentFoldersWidget::updateIcons(const QSize &/*size*/)
{
pIconsManager->setIcon(ui->btnOpenConfigFolderInBrowser,IconsManager::ACTION_FILE_OPEN_FOLDER);
pIconsManager->setIcon(ui->btnOpenThemeFolderInFileBrowser,IconsManager::ACTION_FILE_OPEN_FOLDER);

View File

@ -70,7 +70,7 @@ void ProjectCompileParamatersWidget::on_btnChooseLib_clicked()
}
}
void ProjectCompileParamatersWidget::updateIcons(const QSize &size)
void ProjectCompileParamatersWidget::updateIcons(const QSize &/*size*/)
{
pIconsManager->setIcon(ui->btnChooseLib, IconsManager::ACTION_MISC_FOLDER);
}

View File

@ -145,7 +145,7 @@ void ProjectCompilerWidget::doSave()
void ProjectCompilerWidget::init()
{
ui->cbCompilerSet->clear();
for (int i=0;i<pSettings->compilerSets().size();i++) {
for (size_t i=0;i<pSettings->compilerSets().size();i++) {
ui->cbCompilerSet->addItem(pSettings->compilerSets().getSet(i)->name());
}
SettingsWidget::init();

View File

@ -57,7 +57,7 @@ void ProjectDLLHostWidget::on_btnBrowse_clicked()
}
}
void ProjectDLLHostWidget::updateIcons(const QSize &size)
void ProjectDLLHostWidget::updateIcons(const QSize &/*size*/)
{
pIconsManager->setIcon(ui->btnBrowse, IconsManager::ACTION_FILE_OPEN_FOLDER);
}

View File

@ -91,7 +91,7 @@ void ProjectOutputWidget::on_btnCompileLog_clicked()
}
}
void ProjectOutputWidget::updateIcons(const QSize &size)
void ProjectOutputWidget::updateIcons(const QSize &/*size*/)
{
pIconsManager->setIcon(ui->btnCompileLog, IconsManager::ACTION_FILE_OPEN_FOLDER);
pIconsManager->setIcon(ui->btnObjOutputDir, IconsManager::ACTION_FILE_OPEN_FOLDER);

View File

@ -59,7 +59,7 @@ void ProjectPreCompileWidget::on_btnBrowse_clicked()
}
}
void ProjectPreCompileWidget::updateIcons(const QSize &size)
void ProjectPreCompileWidget::updateIcons(const QSize &/*size*/)
{
pIconsManager->setIcon(ui->btnBrowse, IconsManager::ACTION_FILE_OPEN_FOLDER);
}

View File

@ -188,6 +188,8 @@ void ClassBrowserModel::setParser(const PCppParser &newCppParser)
&CppParser::onEndParsing,
this,
&ClassBrowserModel::fillStatements);
} else {
clear();
}
}

View File

@ -14,7 +14,7 @@ HWND hMainDlg = NULL;
HWND hwndTxtPassword = NULL;
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
HINSTANCE /*hPrevInstance*/,
LPTSTR lpCmdLine, int nCmdShow) {
MSG msg;
@ -51,7 +51,7 @@ LRESULT CALLBACK TxtPasswordWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l
return CallWindowProc(lpfnTxtPasswordWndProc, hwnd, msg, wParam, lParam);
}
LRESULT CALLBACK MainDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) {
LRESULT CALLBACK MainDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM /*lParam*/) {
switch (message) {
case WM_INITDIALOG :
return TRUE ;