X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ade7e576a12a85c6422ed266a07062ef222b1c4b..82e94f591f2638b07a4f28c096d94ec7e8571c20:/src/common/geometry.cpp diff --git a/src/common/geometry.cpp b/src/common/geometry.cpp index da7506b768..6c171e73a5 100644 --- a/src/common/geometry.cpp +++ b/src/common/geometry.cpp @@ -152,6 +152,7 @@ void wxRect2DDouble::ConstrainTo( const wxRect2DDouble &rect ) // wxPoint2D +#if wxUSE_STREAMS void wxPoint2DInt::WriteTo( wxDataOutputStream &stream ) const { stream.Write32( m_x ); @@ -163,8 +164,9 @@ void wxPoint2DInt::ReadFrom( wxDataInputStream &stream ) m_x = stream.Read32(); m_y = stream.Read32(); } +#endif // wxUSE_STREAMS -wxDouble wxPoint2DInt::GetVectorAngle() +wxDouble wxPoint2DInt::GetVectorAngle() const { if ( m_x == 0 ) { @@ -338,6 +340,7 @@ wxRect2DInt& wxRect2DInt::operator=( const wxRect2DInt &r ) return *this; } +#if wxUSE_STREAMS void wxRect2DInt::WriteTo( wxDataOutputStream &stream ) const { stream.Write32( m_x ); @@ -353,5 +356,6 @@ void wxRect2DInt::ReadFrom( wxDataInputStream &stream ) m_width = stream.Read32(); m_height = stream.Read32(); } +#endif // wxUSE_STREAMS #endif // wxUSE_GEOMETRY