1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

replace header guards with #pragma once

This commit is contained in:
Leonid Fedorov
2021-12-14 20:06:05 +03:00
parent ab449ebcc0
commit 01f3ceb437
638 changed files with 638 additions and 1914 deletions

View File

@ -18,8 +18,7 @@
MA 02110-1301, USA.
*/
#ifndef MESSAGEQCPP_BYTESTREAM_H
#define MESSAGEQCPP_BYTESTREAM_H
#pragma once
#include <string>
#include <iostream>
@ -762,4 +761,3 @@ template<> inline void swap<messageqcpp::ByteStream>(messageqcpp::ByteStream& lh
#undef EXPORT
#endif //MESSAGEQCPP_BYTESTREAM_H

View File

@ -15,8 +15,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */
#ifndef BYTESTREAMPOOL_H_
#define BYTESTREAMPOOL_H_
#pragma once
/* This class defines a pool of bytestreams to improve BS reuse, reducing
the need to use the dynamic allocator. It allocates as many BS's as needed,
@ -51,4 +50,3 @@ class ByteStreamPool
}
#endif

View File

@ -21,8 +21,7 @@
*
***********************************************************************/
/** @file */
#ifndef MESSAGEQCPP_COMPRESSED_ISS_H
#define MESSAGEQCPP_COMPRESSED_ISS_H
#pragma once
#include <unistd.h>
#ifndef _MSC_VER
@ -63,4 +62,3 @@ private:
#undef EXPORT
#endif

View File

@ -21,8 +21,7 @@
*
***********************************************************************/
/** @file */
#ifndef MESSAGEQCPP_INETSTREAMSOCKET_H
#define MESSAGEQCPP_INETSTREAMSOCKET_H
#pragma once
#include <ctime>
#include <unistd.h>
@ -288,5 +287,4 @@ inline std::ostream& operator<<(std::ostream& os, const InetStreamSocket& rhs)
#undef EXPORT
#endif //MESSAGEQCPP_INETSTREAMSOCKET_H

View File

@ -21,8 +21,7 @@
*
***********************************************************************/
/** @file */
#ifndef MESSAGEQCPP_IOSOCKET_H
#define MESSAGEQCPP_IOSOCKET_H
#pragma once
#include <string>
#include <cassert>
@ -308,5 +307,4 @@ inline std::ostream& operator<<(std::ostream& os, const IOSocket& rhs)
#undef EXPORT
#endif //MESSAGEQCPP_IOSOCKET_H

View File

@ -21,8 +21,7 @@
*
******************************************************************************************/
/** @file */
#ifndef MESSAGEQCPP_MESSAGEQUEUE_H
#define MESSAGEQCPP_MESSAGEQUEUE_H
#pragma once
#include <string>
#include <ctime>
@ -335,6 +334,5 @@ inline void MessageQueueClient::syncProto(bool use)
#undef EXPORT
#endif //MESSAGEQCPP_MESSAGEQUEUE_H
// vim:ts=4 sw=4:

View File

@ -15,8 +15,7 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */
#ifndef MESSAGEQCPP_MESSAGEQUEUECLIENT_H
#define MESSAGEQCPP_MESSAGEQUEUECLIENT_H
#pragma once
#include <map>
#include "messagequeue.h"
@ -55,4 +54,3 @@ private:
};
}
#endif //MESSAGEQCPP_MESSAGEQUEUECLIENT_H

View File

@ -24,8 +24,7 @@
* class XXX interface
*/
#ifndef _SERIALIZEABLE_H_
#define _SERIALIZEABLE_H_
#pragma once
namespace messageqcpp
{
@ -58,4 +57,3 @@ public:
}
#endif

View File

@ -21,8 +21,7 @@
*
***********************************************************************/
/** @file */
#ifndef MESSAGEQCPP_SERVERSOCKET_H
#define MESSAGEQCPP_SERVERSOCKET_H
#pragma once
#include <sys/types.h>
#ifdef _MSC_VER
@ -171,5 +170,4 @@ inline void ServerSocket::syncProto(bool use)
} //namespace messageqcpp
#endif //MESSAGEQCPP_SERVERSOCKET_H

View File

@ -21,8 +21,7 @@
*
***********************************************************************/
/** @file */
#ifndef MESSAGEQCPP_SOCKET_H
#define MESSAGEQCPP_SOCKET_H
#pragma once
#include <ctime>
#include <unistd.h>
@ -184,5 +183,4 @@ public:
} //namespace messageqcpp
#endif //MESSAGEQCPP_SOCKET_H

View File

@ -25,8 +25,7 @@
#include <exception>
#include <string>
#ifndef SOCKETCLOSED_H_
#define SOCKETCLOSED_H_
#pragma once
namespace messageqcpp
{
@ -58,4 +57,3 @@ public:
}
#endif

View File

@ -21,8 +21,7 @@
*
***********************************************************************/
/** @file */
#ifndef MESSAGEQCPP_SOCKETPARMS_H
#define MESSAGEQCPP_SOCKETPARMS_H
#pragma once
class MessageQTestSuite;
@ -153,5 +152,4 @@ inline void SocketParms::protocol(int protocol)
} //namespace messageqcpp
#endif //MESSAGEQCPP_SOCKETPARMS_H