mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-02-03 09:44:26 -05:00
missing include
This commit is contained in:
parent
9852967551
commit
db1374045b
@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
#include "GLPanel.h"
|
#include "GLPanel.h"
|
||||||
#include "cubic_math.h"
|
#include "cubic_math.h"
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
using namespace CubicVR;
|
using namespace CubicVR;
|
||||||
|
|
||||||
@ -208,7 +209,7 @@ void GLPanel::setBorderPx(float bordl, float bordr, float bordt, float bordb) {
|
|||||||
|
|
||||||
void GLPanel::addChild(GLPanel *childPanel) {
|
void GLPanel::addChild(GLPanel *childPanel) {
|
||||||
std::vector<GLPanel *>::iterator i = std::find(children.begin(), children.end(), childPanel);
|
std::vector<GLPanel *>::iterator i = std::find(children.begin(), children.end(), childPanel);
|
||||||
|
|
||||||
if (i == children.end()) {
|
if (i == children.end()) {
|
||||||
children.push_back(childPanel);
|
children.push_back(childPanel);
|
||||||
}
|
}
|
||||||
@ -216,7 +217,7 @@ void GLPanel::addChild(GLPanel *childPanel) {
|
|||||||
|
|
||||||
void GLPanel::removeChild(GLPanel *childPanel) {
|
void GLPanel::removeChild(GLPanel *childPanel) {
|
||||||
std::vector<GLPanel *>::iterator i = std::find(children.begin(), children.end(), childPanel);
|
std::vector<GLPanel *>::iterator i = std::find(children.begin(), children.end(), childPanel);
|
||||||
|
|
||||||
if (i != children.end()) {
|
if (i != children.end()) {
|
||||||
children.erase(i);
|
children.erase(i);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user