diff --git a/src/apps/lc-compliance/test_base.h b/src/apps/lc-compliance/test_base.h
index 0f32e3c21d0e..3451ef5f3724 100644
--- a/src/apps/lc-compliance/test_base.h
+++ b/src/apps/lc-compliance/test_base.h
@@ -4,9 +4,7 @@
  *
  * Base definitions for tests
  */
-
-#ifndef __LC_COMPLIANCE_TEST_BASE_H__
-#define __LC_COMPLIANCE_TEST_BASE_H__
+#pragma once

 #include <libcamera/libcamera.h>

@@ -20,5 +18,3 @@ protected:

 	std::shared_ptr<libcamera::Camera> camera_;
 };
-
-#endif /* __LC_COMPLIANCE_TEST_BASE_H__ */
