Fix warnings: conversion to double/float, unused variables, register keyword

This commit is contained in:
Alexander Gruzintsev
2023-10-30 08:18:33 +01:00
parent 72bf271214
commit de82b9fc7a
8 changed files with 14 additions and 8 deletions

View File

@@ -393,7 +393,9 @@ Gtk::TreePath DirBrowser::expandToDir (const Glib::ustring& absDirPath)
char* dcpy = strdup (absDirPath.c_str());
char* dir = strtok (dcpy, "/\\");
#ifdef _WIN32
int count = 0;
#endif
expandSuccess = true;
#ifndef _WIN32
@@ -436,8 +438,9 @@ Gtk::TreePath DirBrowser::expandToDir (const Glib::ustring& absDirPath)
++ix;
++i;
}
#ifdef _WIN32
count++;
#endif
dir = strtok(nullptr, "/\\");
}

View File

@@ -24,7 +24,7 @@
#include "guiutils.h"
class EditorPanel;
class ExternalEditor;
struct ExternalEditor;
class RTWindow;
class EditWindow :

View File

@@ -445,7 +445,7 @@ void FlatField::setGainMap(bool enabled) {
flatFieldFromMetaData->set_sensitive(enabled);
if (!enabled) {
idle_register.add(
[this, enabled]() -> bool
[this]() -> bool
{
disableListener();
flatFieldFromMetaData->setValue(false);

View File

@@ -30,7 +30,7 @@ namespace rtengine
namespace procparams
{
class ColorManagementParams;
struct ColorManagementParams;
}

View File

@@ -28,7 +28,7 @@ namespace rtengine
namespace procparams
{
class ColorManagementParams;
struct ColorManagementParams;
}