No real changes, just rename double variables to "d".
Don't use "i" or "f" for double variable names, this is confusing, especially when we do it inconsistently. See #10625. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -97,7 +97,7 @@ public:
|
|||||||
wxDataInputStream& operator>>(wxULongLong& i);
|
wxDataInputStream& operator>>(wxULongLong& i);
|
||||||
wxDataInputStream& operator>>(wxLongLong& i);
|
wxDataInputStream& operator>>(wxLongLong& i);
|
||||||
#endif
|
#endif
|
||||||
wxDataInputStream& operator>>(double& i);
|
wxDataInputStream& operator>>(double& d);
|
||||||
wxDataInputStream& operator>>(float& f);
|
wxDataInputStream& operator>>(float& f);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@@ -159,7 +159,7 @@ public:
|
|||||||
wxDataOutputStream& operator<<(const wxULongLong &i);
|
wxDataOutputStream& operator<<(const wxULongLong &i);
|
||||||
wxDataOutputStream& operator<<(const wxLongLong &i);
|
wxDataOutputStream& operator<<(const wxLongLong &i);
|
||||||
#endif
|
#endif
|
||||||
wxDataOutputStream& operator<<(double f);
|
wxDataOutputStream& operator<<(double d);
|
||||||
wxDataOutputStream& operator<<(float f);
|
wxDataOutputStream& operator<<(float f);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -110,9 +110,9 @@ public:
|
|||||||
void Write64(const wxUint64* buffer, size_t size);
|
void Write64(const wxUint64* buffer, size_t size);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Writes the double @a f to the stream using the IEEE format.
|
Writes the double @a d to the stream using the IEEE format.
|
||||||
*/
|
*/
|
||||||
void WriteDouble(double f);
|
void WriteDouble(double d);
|
||||||
/**
|
/**
|
||||||
Writes an array of double to the stream. The amount of double to write is
|
Writes an array of double to the stream. The amount of double to write is
|
||||||
specified with the @a size variable.
|
specified with the @a size variable.
|
||||||
|
@@ -458,9 +458,9 @@ wxDataInputStream& wxDataInputStream::operator>>(wxLongLong& i)
|
|||||||
}
|
}
|
||||||
#endif // wxLongLong_t
|
#endif // wxLongLong_t
|
||||||
|
|
||||||
wxDataInputStream& wxDataInputStream::operator>>(double& i)
|
wxDataInputStream& wxDataInputStream::operator>>(double& d)
|
||||||
{
|
{
|
||||||
i = ReadDouble();
|
d = ReadDouble();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -734,9 +734,9 @@ wxDataOutputStream& wxDataOutputStream::operator<<(const wxLongLong &i)
|
|||||||
}
|
}
|
||||||
#endif // wxLongLong_t
|
#endif // wxLongLong_t
|
||||||
|
|
||||||
wxDataOutputStream& wxDataOutputStream::operator<<(double f)
|
wxDataOutputStream& wxDataOutputStream::operator<<(double d)
|
||||||
{
|
{
|
||||||
WriteDouble(f);
|
WriteDouble(d);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user