use #pragma once

This commit is contained in:
Garux
2021-10-22 02:19:50 +03:00
parent 3362f29500
commit bf6389fc26
374 changed files with 400 additions and 1565 deletions

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_STREAM_FILESTREAM_H )
#define INCLUDED_STREAM_FILESTREAM_H
#pragma once
#include "idatastream.h"
#include <algorithm>
@@ -168,6 +167,3 @@ inline bool file_copy( const char* source, const char* target ){
}
return true;
}
#endif

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_STREAM_MEMSTREAM_H )
#define INCLUDED_STREAM_MEMSTREAM_H
#pragma once
#include "itextstream.h"
#include <algorithm>
@@ -70,5 +69,3 @@ public:
return count;
}
};
#endif

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_STREAM_STRINGSTREAM_H )
#define INCLUDED_STREAM_STRINGSTREAM_H
#pragma once
#include "itextstream.h"
#include "string/string.h"
@@ -154,6 +153,3 @@ template<typename T>
inline StringOutputStream& operator<<( StringOutputStream& ostream, const T& t ){
return ostream_write( ostream, t );
}
#endif

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_STREAM_TEXTFILESTREAM_H )
#define INCLUDED_STREAM_TEXTFILESTREAM_H
#pragma once
#include "itextstream.h"
#include <stdio.h>
@@ -75,6 +74,3 @@ template<typename T>
inline TextFileOutputStream& operator<<( TextFileOutputStream& ostream, const T& t ){
return ostream_write( ostream, t );
}
#endif

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_STREAM_TEXTSTREAM_H )
#define INCLUDED_STREAM_TEXTSTREAM_H
#pragma once
/// \file
/// \brief Text-output-formatting.
@@ -466,5 +465,3 @@ public:
}
}
};
#endif