From 47386558dbc95387f9062651774d9b2e1bb8bc6b Mon Sep 17 00:00:00 2001 From: Anusha Gugale Date: Thu, 21 Jan 2021 09:08:43 +0530 Subject: Use parameterized constructor of RBAArbitrator - 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 Change-Id: I957796861081c79df9018cac92bd06927952924d --- src/rba_adapter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rba_adapter.cpp b/src/rba_adapter.cpp index 120d032..0583f92 100644 --- a/src/rba_adapter.cpp +++ b/src/rba_adapter.cpp @@ -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"); -- cgit 1.2.3-korg