Skip to content

Commit 4ec6111

Browse files
committed
Use singleton for DisplayManager in main example
1 parent b81454c commit 4ec6111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/display_example/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ void printDisplayInfo(const Display& display, bool isPrimary = false) {
144144

145145
int main() {
146146
try {
147-
DisplayManager displayManager = DisplayManager();
147+
DisplayManager& displayManager = DisplayManager::GetInstance();
148148

149149
std::cout << "=== Native API Display Manager Demo ===" << std::endl;
150150
std::cout << std::endl;

0 commit comments

Comments
 (0)