summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2024-03-26 11:57:39 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2024-03-26 12:18:54 +0100
commit702e6907265035af031004f21ce09e3f62037fb4 (patch)
tree8e805516f914bb49f075a9b262299d312f178c8d /src
parent9b3b365a6645c16b0f93dcd798da83494e481d26 (diff)
Fix all header file linter warnings
Diffstat (limited to 'src')
-rw-r--r--src/audiocacheeventhandler.cc2
-rw-r--r--src/audiocacheidmanager.cc3
-rw-r--r--src/audiooutputengine.h2
-rw-r--r--src/directory.cc6
-rw-r--r--src/drumgizmo.cc2
-rw-r--r--src/drumgizmoconf.h2
-rw-r--r--src/nolocale.h2
-rw-r--r--src/path.cc4
-rw-r--r--src/powerlist.cc6
-rw-r--r--src/sem.cc8
-rw-r--r--src/versionstr.cc5
11 files changed, 21 insertions, 21 deletions
diff --git a/src/audiocacheeventhandler.cc b/src/audiocacheeventhandler.cc
index e5c1bdc..e1b9868 100644
--- a/src/audiocacheeventhandler.cc
+++ b/src/audiocacheeventhandler.cc
@@ -26,7 +26,7 @@
*/
#include "audiocacheeventhandler.h"
-#include <assert.h>
+#include <cassert>
#include <hugin.hpp>
diff --git a/src/audiocacheidmanager.cc b/src/audiocacheidmanager.cc
index efef17e..91a1457 100644
--- a/src/audiocacheidmanager.cc
+++ b/src/audiocacheidmanager.cc
@@ -27,7 +27,8 @@
#include "audiocacheidmanager.h"
#include <limits>
-#include <assert.h>
+#include <cassert>
+
AudioCacheIDManager::~AudioCacheIDManager()
{
diff --git a/src/audiooutputengine.h b/src/audiooutputengine.h
index f69fd75..a69c56d 100644
--- a/src/audiooutputengine.h
+++ b/src/audiooutputengine.h
@@ -29,7 +29,7 @@
#include <cstddef>
#include <string>
-#include <audiotypes.h>
+#include "audiotypes.h"
#include "channel.h"
diff --git a/src/directory.cc b/src/directory.cc
index 596b045..27637a9 100644
--- a/src/directory.cc
+++ b/src/directory.cc
@@ -27,14 +27,14 @@
#include "directory.h"
#include <dirent.h>
-#include <stdio.h>
+#include <cstdio>
#include <string>
#include <algorithm>
#include <vector>
-#include <string.h>
+#include <cstring>
#include <unistd.h>
-#include <platform.h>
+#include "platform.h"
#if DG_PLATFORM == DG_PLATFORM_WINDOWS
#include <direct.h>
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc
index b67e91a..bd729ab 100644
--- a/src/drumgizmo.cc
+++ b/src/drumgizmo.cc
@@ -32,7 +32,7 @@
#include <cstring>
#include <mutex>
-#include <audiotypes.h>
+#include "audiotypes.h"
#include <config.h>
#include <hugin.hpp>
diff --git a/src/drumgizmoconf.h b/src/drumgizmoconf.h
index f031730..ee14ec6 100644
--- a/src/drumgizmoconf.h
+++ b/src/drumgizmoconf.h
@@ -26,7 +26,7 @@
*/
#pragma once
-#include <configfile.h>
+#include "configfile.h"
class DrumgizmoConfig
: public ConfigFile
diff --git a/src/nolocale.h b/src/nolocale.h
index 430c38c..7a10a9c 100644
--- a/src/nolocale.h
+++ b/src/nolocale.h
@@ -27,7 +27,7 @@
#pragma once
#include <locale.h>
-#include <stdarg.h>
+#include <cstdarg>
#include <cstdlib>
static inline double atof_nol(const char* nptr)
diff --git a/src/path.cc b/src/path.cc
index 993f9a6..eaa1e04 100644
--- a/src/path.cc
+++ b/src/path.cc
@@ -30,8 +30,8 @@
#include <libgen.h>
#endif/*__MINGW32__*/
-#include <string.h>
-#include <stdlib.h>
+#include <cstring>
+#include <cstdlib>
std::string getPath(const std::string& file)
{
diff --git a/src/powerlist.cc b/src/powerlist.cc
index 8dd0b24..f852ac9 100644
--- a/src/powerlist.cc
+++ b/src/powerlist.cc
@@ -27,8 +27,8 @@
#include "powerlist.h"
#include <algorithm>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstring>
#include <hugin.hpp>
@@ -36,7 +36,7 @@
#ifdef __STRICT_ANSI__
#undef __STRICT_ANSI__
#endif
-#include <math.h>
+#include <cmath>
#include "random.h"
#include "settings.h"
diff --git a/src/sem.cc b/src/sem.cc
index ad5266d..13cfca4 100644
--- a/src/sem.cc
+++ b/src/sem.cc
@@ -28,8 +28,8 @@
#include <hugin.hpp>
#include <limits>
-#include <assert.h>
-#include <string.h>
+#include <cassert>
+#include <cstring>
#include <chrono>
#include <thread>
@@ -37,8 +37,8 @@
#if DG_PLATFORM != DG_PLATFORM_WINDOWS
#include <semaphore.h>
-#include <errno.h>
-#include <stdio.h>
+#include <cerrno>
+#include <cstdio>
#include <sys/time.h>
#endif
diff --git a/src/versionstr.cc b/src/versionstr.cc
index 8c6c66f..ac16e41 100644
--- a/src/versionstr.cc
+++ b/src/versionstr.cc
@@ -26,9 +26,8 @@
*/
#include "versionstr.h"
-#include <memory.h>
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#include <hugin.hpp>