App::I static singleton to pointer

This commit is contained in:
2019-07-11 18:08:17 +02:00
parent 92dd00d910
commit b89274e7a6
33 changed files with 417 additions and 412 deletions

View File

@@ -92,7 +92,7 @@ void NodeColorPicker::init_controls()
m_btn_paste->on_click = [this](Node*)
{
std::string s = App::I.clipboard_get_text();
std::string s = App::I->clipboard_get_text();
std::regex r("#([\\dabcdefABCDEF]{6})");
std::smatch m;
if (std::regex_search(s, m, r))
@@ -108,7 +108,7 @@ void NodeColorPicker::init_controls()
m_btn_copy->on_click = [this](Node*)
{
App::I.clipboard_set_text(m_txt_hex->m_text);
App::I->clipboard_set_text(m_txt_hex->m_text);
};
m_wheel->on_value_changed = [this](Node*, glm::vec3 hsv)