diff --git a/src/apppstatus.cc b/src/apppstatus.cc index 7585b455e..22efde8b3 100644 --- a/src/apppstatus.cc +++ b/src/apppstatus.cc @@ -786,7 +786,7 @@ void NetStatusControl::linuxUpdate() { } int const count(fNetStatus.getCount()); - asmart covered(new bool[count]); + bool covered[count]; for (int i = 0; i < count; ++i) { covered[i] = (nullptr == fNetStatus[i]); } diff --git a/src/wmdock.cc b/src/wmdock.cc index eebcf3671..56d5a1ecc 100644 --- a/src/wmdock.cc +++ b/src/wmdock.cc @@ -357,7 +357,7 @@ void DockApp::proper() { if (intern) { const int count = docks.getCount(); if (count) { - asmart atoms(new Atom[count]); + Atom atoms[count]; for (int i = 0; i < count; ++i) { atoms[i] = Atom(docks[i].client->handle()); } diff --git a/src/wmmgr.cc b/src/wmmgr.cc index 6316f69e3..fbc6048c1 100644 --- a/src/wmmgr.cc +++ b/src/wmmgr.cc @@ -3079,7 +3079,7 @@ void YWindowManager::setDesktopCount() { void YWindowManager::setDesktopViewport() { MSG(("setting: _NET_DESKTOP_VIEWPORT")); const int n = 2 * workspaceCount; - asmart data(new Atom[n]); + Atom data[n]; for (int i = 0; i < n; ++i) data[i] = 0; setProperty(_XA_NET_DESKTOP_VIEWPORT, XA_CARDINAL, data, n); diff --git a/src/wmpref.cc b/src/wmpref.cc index 0bfafe8e6..f95dabdda 100644 --- a/src/wmpref.cc +++ b/src/wmpref.cc @@ -42,7 +42,7 @@ PrefsMenu::PrefsMenu() : addSubmenu("S_calar", -2, sc = new YMenu, "key"); addSubmenu("St_ring", -2, st = new YMenu, "key"); - asmart index(new int[count]); + int index[count]; for (int i = 0; i < count; ++i) { index[i] = i; } diff --git a/src/yxtray.cc b/src/yxtray.cc index 6fc5ab19c..725ab8726 100644 --- a/src/yxtray.cc +++ b/src/yxtray.cc @@ -860,7 +860,7 @@ void YXTray::trayUpdateGeometry(unsigned w, unsigned h, bool visible) { void YXTray::updateTrayWindows() { const int count = fDocked.getCount(); - asmart windows(new Window[count]); + Window windows[count]; for (IterType ec = fDocked.iterator(); ++ec; ) windows[ec.where()] = ec->leader();