r11859: Canonicalize whitespace
[ctsim.git] / include / fnetorderstream.h
index f58550b32923a76944141e1ae48af764ba93fced..876c6a350bb98253cb9b8a4807b93d612b5eacd7 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: fnetorderstream.h,v 1.9 2001/03/13 04:44:25 kevin Exp $
+**  $Id$
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -118,8 +118,8 @@ void ConvertReverseNetworkOrder (void* buffer, size_t bytes);
 using std::fstream;
 class fnetorderstream : public fstream {
  public:
-  fnetorderstream (const char* filename, int mode)
-         : fstream (filename, mode) {}
+  fnetorderstream (const char* filename, std::ios::openmode mode)
+          : fstream (filename, mode) {}
 
   ~fnetorderstream (void)
       {}
@@ -128,7 +128,7 @@ class fnetorderstream : public fstream {
   virtual void writeInt32 (kuint32 n);
   virtual void  writeFloat32 (kfloat32 n);
   virtual void  writeFloat64 (kfloat64 n);
-  
+
   virtual void  readInt16 (kuint16& n);
   virtual void  readInt32 (kuint32& n);
   virtual void  readFloat32 (kfloat32& n);
@@ -138,14 +138,14 @@ class fnetorderstream : public fstream {
 
 class frnetorderstream : public fnetorderstream {
  public:
-  frnetorderstream (const char* filename, int mode)
+  frnetorderstream (const char* filename, std::ios::openmode mode)
     : fnetorderstream (filename, mode) {}
 
   virtual void writeInt16 (kuint16 n);
   virtual void writeInt32 (kuint32 n);
   virtual void writeFloat32 (kfloat32 n);
   virtual void writeFloat64 (kfloat64 n);
-  
+
   virtual void readInt16 (kuint16& n);
   virtual void readInt32 (kuint32& n);
   virtual void readFloat32 (kfloat32& n);