util, io, net, ...: use "#pragma once"

This commit is contained in:
Max Kellermann
2024-02-26 13:01:12 +01:00
committed by Max Kellermann
parent 313f2a1894
commit be84b189dc
32 changed files with 32 additions and 128 deletions

View File

@@ -1,8 +1,7 @@
// SPDX-License-Identifier: BSD-2-Clause
// author: Max Kellermann <max.kellermann@gmail.com>
#ifndef CURL_GLOBAL_HXX
#define CURL_GLOBAL_HXX
#pragma once
#include "Multi.hxx"
#include "event/CoarseTimerEvent.hxx"
@@ -56,5 +55,3 @@ private:
/* callback for #timeout_event */
void OnTimeout() noexcept;
};
#endif

View File

@@ -1,8 +1,7 @@
// SPDX-License-Identifier: BSD-2-Clause
// author: Max Kellermann <max.kellermann@gmail.com>
#ifndef CURL_SLIST_HXX
#define CURL_SLIST_HXX
#pragma once
#include <curl/curl.h>
@@ -47,5 +46,3 @@ public:
head = new_head;
}
};
#endif

View File

@@ -1,8 +1,7 @@
// SPDX-License-Identifier: BSD-2-Clause
// author: Max Kellermann <max.kellermann@gmail.com>
#ifndef CURL_STRING_HXX
#define CURL_STRING_HXX
#pragma once
#include <curl/curl.h>
@@ -47,5 +46,3 @@ public:
return p;
}
};
#endif

View File

@@ -2,8 +2,7 @@
// Copyright CM4all GmbH
// author: Max Kellermann <mk@cm4all.com>
#ifndef ODBUS_CONNECTION_HXX
#define ODBUS_CONNECTION_HXX
#pragma once
#include <dbus/dbus.h>
@@ -61,5 +60,3 @@ public:
};
} /* namespace ODBus */
#endif

View File

@@ -2,8 +2,7 @@
// Copyright CM4all GmbH
// author: Max Kellermann <mk@cm4all.com>
#ifndef ODBUS_ITER_HXX
#define ODBUS_ITER_HXX
#pragma once
#include <dbus/dbus.h>
@@ -21,5 +20,3 @@ public:
};
} /* namespace ODBus */
#endif

View File

@@ -2,8 +2,7 @@
// Copyright CM4all GmbH
// author: Max Kellermann <mk@cm4all.com>
#ifndef ODBUS_MESSAGE_HXX
#define ODBUS_MESSAGE_HXX
#pragma once
#include <dbus/dbus.h>
@@ -123,5 +122,3 @@ public:
};
} /* namespace ODBus */
#endif

View File

@@ -2,8 +2,7 @@
// Copyright CM4all GmbH
// author: Max Kellermann <mk@cm4all.com>
#ifndef ODBUS_PENDING_CALL_HXX
#define ODBUS_PENDING_CALL_HXX
#pragma once
#include <dbus/dbus.h>
@@ -76,5 +75,3 @@ public:
};
} /* namespace ODBus */
#endif

View File

@@ -2,8 +2,7 @@
// Copyright CM4all GmbH
// author: Max Kellermann <mk@cm4all.com>
#ifndef ODBUS_SCOPE_MATCH_HXX
#define ODBUS_SCOPE_MATCH_HXX
#pragma once
#include <dbus/dbus.h>
@@ -29,5 +28,3 @@ public:
};
} /* namespace ODBus */
#endif

View File

@@ -2,8 +2,7 @@
// Copyright CM4all GmbH
// author: Max Kellermann <mk@cm4all.com>
#ifndef ODBUS_TYPES_HXX
#define ODBUS_TYPES_HXX
#pragma once
#include "util/TemplateString.hxx"
@@ -89,5 +88,3 @@ struct StructTypeTraits {
};
} /* namespace ODBus */
#endif

View File

@@ -1,8 +1,7 @@
// SPDX-License-Identifier: BSD-2-Clause
// author: Max Kellermann <max.kellermann@gmail.com>
#ifndef ZLIB_ERROR_HXX
#define ZLIB_ERROR_HXX
#pragma once
#include <exception>
@@ -18,5 +17,3 @@ public:
const char *what() const noexcept override;
};
#endif

View File

@@ -1,8 +1,7 @@
// SPDX-License-Identifier: BSD-2-Clause
// author: Max Kellermann <max.kellermann@gmail.com>
#ifndef GUNZIP_READER_HXX
#define GUNZIP_READER_HXX
#pragma once
#include "io/Reader.hxx"
#include "util/StaticFifoBuffer.hxx"
@@ -39,5 +38,3 @@ public:
private:
bool FillBuffer();
};
#endif