Skip to content
Permalink
Browse files

Style updates

  • Loading branch information
nyalldawson committed Feb 2, 2018
1 parent 536c586 commit b7e19d8243be444df630f5c6bdd4e65a87e5b3f0
Showing with 8 additions and 2 deletions.
  1. +6 −0 src/core/geometry/qgswkbptr.h
  2. +2 −2 src/core/gps/qgsgpsdetector.cpp
@@ -82,11 +82,17 @@ class CORE_EXPORT QgsWkbPtr
inline const QgsWkbPtr &operator>>( char &v ) const { read( v ); return *this; } SIP_SKIP
inline const QgsWkbPtr &operator>>( QgsWkbTypes::Type &v ) const { read( v ); return *this; } SIP_SKIP

//! Writes a double to the pointer
inline QgsWkbPtr &operator<<( double v ) { write( v ); return *this; } SIP_SKIP
//! Writes a float to the pointer
inline QgsWkbPtr &operator<<( float r ) { double v = r; write( v ); return *this; } SIP_SKIP
//! Writes an int to the pointer
inline QgsWkbPtr &operator<<( int v ) { write( v ); return *this; } SIP_SKIP
//! Writes an unsigned int to the pointer
inline QgsWkbPtr &operator<<( unsigned int v ) { write( v ); return *this; } SIP_SKIP
//! Writes a char to the pointer
inline QgsWkbPtr &operator<<( char v ) { write( v ); return *this; } SIP_SKIP
//! Writes a WKB type value to the pointer
inline QgsWkbPtr &operator<<( QgsWkbTypes::Type v ) { write( v ); return *this; } SIP_SKIP
//! Append data from a byte array
inline QgsWkbPtr &operator<<( const QByteArray &data ) { write( data ); return *this; } SIP_SKIP
@@ -45,8 +45,8 @@ QList< QPair<QString, QString> > QgsGpsDetector::availablePorts()
#ifdef Q_OS_LINUX
// look for linux serial devices
const QStringList devices { QStringLiteral( "/dev/ttyS%1" ),
QStringLiteral( "/dev/ttyUSB%1" ),
QStringLiteral( "/dev/rfcomm%1" ), QStringLiteral( "/dev/ttyACM%1" ) };
QStringLiteral( "/dev/ttyUSB%1" ),
QStringLiteral( "/dev/rfcomm%1" ), QStringLiteral( "/dev/ttyACM%1" ) };
for ( const QString &linuxDev : devices )
{
for ( int i = 0; i < 10; ++i )

0 comments on commit b7e19d8

Please sign in to comment.
You can’t perform that action at this time.