Fix warnings (#3852)
* Remove register keyword Register is meaningless in c++, and removed in c++17 * Fix compiler warningsg Add missing override, remove unused capture, and remove unused local variablees
This commit is contained in:
@@ -47,7 +47,7 @@ std::unique_ptr<PluginFactory> PluginFactory::s_instance;
|
||||
PluginFactory::PluginFactory()
|
||||
{
|
||||
// Adds a search path relative to the main executable if the path exists.
|
||||
auto addRelativeIfExists = [this] (const QString& path) {
|
||||
auto addRelativeIfExists = [](const QString & path) {
|
||||
QDir dir(qApp->applicationDirPath());
|
||||
if (!path.isEmpty() && dir.cd(path)) {
|
||||
QDir::addSearchPath("plugins", dir.absolutePath());
|
||||
|
||||
@@ -77,11 +77,9 @@ const int SCROLLBAR_SIZE = 12;
|
||||
const int PIANO_X = 0;
|
||||
|
||||
const int WHITE_KEY_WIDTH = 64;
|
||||
const int BLACK_KEY_WIDTH = 41;
|
||||
const int WHITE_KEY_SMALL_HEIGHT = 18;
|
||||
const int WHITE_KEY_BIG_HEIGHT = 24;
|
||||
const int BLACK_KEY_HEIGHT = 16;
|
||||
const int C_KEY_LABEL_X = WHITE_KEY_WIDTH - 19;
|
||||
const int KEY_LINE_HEIGHT = 12;
|
||||
const int OCTAVE_HEIGHT = KEY_LINE_HEIGHT * KeysPerOctave; // = 12 * 12;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user