Use parameterized constructor of RBAArbitrator 36/25936/3 10.93.0 koi/10.93.0 koi_10.93.0
authorAnusha Gugale <external.agogale@jp.adit-jv.com>
Thu, 21 Jan 2021 03:38:43 +0000 (09:08 +0530)
committerMarius Vlad <marius.vlad@collabora.com>
Tue, 26 Jan 2021 10:59:19 +0000 (10:59 +0000)
- To hide unnecessary internal interfaces from user, reconstructed
  public files of librba. At this time, default constructor has been removed.

  Bug-AGL: SPEC-3738

Signed-off-by: Anusha Gugale <external.agogale@jp.adit-jv.com>
Change-Id: I957796861081c79df9018cac92bd06927952924d

src/rba_adapter.cpp

index 120d032..0583f92 100644 (file)
@@ -52,12 +52,11 @@ bool rba_adapter_initialize(void)
                        weston_log("RBAmodel is NULL\n");
                        return false;
                }
-               arb = new rba::RBAArbitrator();
+               arb = new rba::RBAArbitrator(model);
                if (arb == nullptr) {
                        weston_log("RBAArbitrator is NULL\n");
                        return false;
                }
-               arb->setModel(model);
                return true;
        }
        weston_log("RBAArbitrator model is already created\n");