Code warning cleanup and add GPL license header to all CPP files

This commit is contained in:
Bruno Herbelin
2021-11-10 23:19:38 +01:00
parent 790ccc320e
commit a6ba694fbd
70 changed files with 1332 additions and 116 deletions

View File

@@ -1,4 +1,22 @@
#include "ImGuiVisitor.h"
/*
* This file is part of vimix - video live mixer
*
* **Copyright** (C) 2020-2021 Bruno Herbelin <bruno.herbelin@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
**/
#include <vector>
#include <algorithm>
@@ -38,13 +56,14 @@
#include "UserInterfaceManager.h"
#include "SystemToolkit.h"
#include "ImGuiVisitor.h"
ImGuiVisitor::ImGuiVisitor()
{
}
void ImGuiVisitor::visit(Node &n)
void ImGuiVisitor::visit(Node &)
{
}
@@ -147,12 +166,12 @@ void ImGuiVisitor::visit(Primitive &n)
ImGui::PopID();
}
void ImGuiVisitor::visit(FrameBufferSurface &n)
void ImGuiVisitor::visit(FrameBufferSurface &)
{
ImGui::Text("Framebuffer");
}
void ImGuiVisitor::visit(MediaPlayer &n)
void ImGuiVisitor::visit(MediaPlayer &)
{
ImGui::Text("Media Player");
}
@@ -794,7 +813,7 @@ void ImGuiVisitor::visit (MultiFileSource& s)
ImGuiToolkit::Icon(s.icon().x, s.icon().y);
ImGui::SameLine(0, 10);
ImGui::Text("Images sequence");
static int64_t id = 0;
static uint64_t id = 0;
// information text
ImGui::PushTextWrapPos(ImGui::GetCursorPos().x + ImGui::GetContentRegionAvail().x IMGUI_RIGHT_ALIGN);