Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
8b4a3854
Commit
8b4a3854
authored
Feb 24, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing const
parent
fa264952
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
SerialLink.cc
src/comm/SerialLink.cc
+1
-1
TCPLink.cc
src/comm/TCPLink.cc
+1
-1
No files found.
src/comm/SerialLink.cc
View file @
8b4a3854
...
...
@@ -27,7 +27,7 @@ SerialLink::SerialLink(QString portname, int baudRate, bool hardwareFlowControl,
m_reqReset
(
false
)
{
// We use QSerialPort::SerialPortError in a signal so we must declare it as a meta type
static
int
idMetaType
=
qRegisterMetaType
<
QSerialPort
::
SerialPortError
>
();
static
const
int
idMetaType
=
qRegisterMetaType
<
QSerialPort
::
SerialPortError
>
();
Q_UNUSED
(
idMetaType
);
// Get the name of the current port in use.
...
...
src/comm/TCPLink.cc
View file @
8b4a3854
...
...
@@ -46,7 +46,7 @@ TCPLink::TCPLink(QHostAddress hostAddress, quint16 socketPort) :
// Even though QAbstractSocket::SocketError is used in a signal by Qt, Qt doesn't declare it as a meta type.
// This in turn causes debug output to be kicked out about not being able to queue the signal. We register it
// as a meta type to silence that.
static
int
idMetaType
=
qRegisterMetaType
<
QAbstractSocket
::
SocketError
>
();
static
const
int
idMetaType
=
qRegisterMetaType
<
QAbstractSocket
::
SocketError
>
();
Q_UNUSED
(
idMetaType
);
_linkId
=
getNextLinkId
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment