~thalexander/unity/update-fsf-address

« back to all changes in this revision

Viewing changes to unity-shared/LayoutSystem.cpp

Introspectable: use IntrospectionData class for collecting data from children

Now each introspectable object is called with an IntrospectionData parameter and calling one
of its methods it's the only way to fill introspection data into unity.
As bonus point, remove all the unneeded UnityCore/Variant.cpp inclusions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
#include "LayoutSystem.h"
21
21
 
22
 
#include <UnityCore/Variant.h>
23
 
 
24
22
namespace unity {
25
23
namespace ui {
26
24
 
298
296
  return "LayoutWindow";
299
297
}
300
298
 
301
 
void LayoutWindow::AddProperties(GVariantBuilder* builder)
 
299
void LayoutWindow::AddProperties(debug::IntrospectionData& introspection)
302
300
{
303
 
  unity::variant::BuilderWrapper(builder)
304
 
    .add(result);
 
301
  introspection.add(result);
305
302
}
306
303
 
307
304
}