[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PATCH: change order of initializers in constructors of TTYStream class
From: |
Vaclav Haisman |
Subject: |
PATCH: change order of initializers in constructors of TTYStream class |
Date: |
Wed, 27 Jun 2001 12:45:59 +0200 (CEST) |
Hi,
this patch changes order initializers in constructors of TTYStream class
so that we don't get warnings like:
/home/4/wilx/include/g++-v3/bits/std_iosfwd.h: In
constructor `TTYStream::TTYStream(const char*)':
/home/4/wilx/include/g++-v3/bits/std_iosfwd.h:59: warning:
base initializers for `class std::basic_iostream<char,
std::char_traits<char> >'
serial.h:126: warning: and `class cc_Serial'
serial.cpp:506: warning: will be re-ordered to match
inheritance order
Vaclav Haisman
The patch:
Index: serial.cpp
===================================================================
RCS file: /cvsroot/cplusplus/CommonC++/posix/serial.cpp,v
retrieving revision 1.50
diff -u -r1.50 serial.cpp
--- serial.cpp 2001/06/26 16:36:51 1.50
+++ serial.cpp 2001/06/27 10:43:17
@@ -502,7 +502,7 @@
}
TTYStream::TTYStream(const char *filename) :
-Serial(filename), streambuf(), iostream((streambuf *)this)
+streambuf(), iostream((streambuf *)this), Serial(filename)
{
gbuf = pbuf = NULL;
timeout = 0;
@@ -511,7 +511,7 @@
}
TTYStream::TTYStream() :
-Serial(), streambuf(), iostream((streambuf *)this)
+streambuf(), iostream((streambuf *)this), Serial()
{
timeout = 0;
gbuf = pbuf = NULL;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- PATCH: change order of initializers in constructors of TTYStream class,
Vaclav Haisman <=