core,hyprctl: clang, clang-tidy, typo fixes and dtors changes (#9233)

* declare dtor once + DMABBUF typo fix

* dup include + clang moment

* linux-dmabuf: last minute nit change
This commit is contained in:
Honkazel 2025-01-30 16:07:06 +05:00 committed by GitHub
parent d462cc7fa1
commit 7d1c78f4a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 35 additions and 94 deletions

View file

@ -1434,10 +1434,6 @@ CMonitorState::CMonitorState(CMonitor* owner) : m_pOwner(owner) {
;
}
CMonitorState::~CMonitorState() {
;
}
void CMonitorState::ensureBufferPresent() {
const auto STATE = m_pOwner->output->state->state();
if (!STATE.enabled) {

View file

@ -6,7 +6,6 @@
#include "../SharedDefs.hpp"
#include "MiscFunctions.hpp"
#include "WLClasses.hpp"
#include <vector>
#include <array>
#include <xf86drmMode.h>
@ -48,7 +47,7 @@ class CSyncTimeline;
class CMonitorState {
public:
CMonitorState(CMonitor* owner);
~CMonitorState();
~CMonitorState() = default;
bool commit();
bool test();