mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-10 18:24:11 +01:00
QString should have been const
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1133 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
37c9e1affd
commit
89e0c687d7
@ -194,7 +194,7 @@ QList<UAVObjectField*> UAVObject::getFields()
|
|||||||
* Get a specific field
|
* Get a specific field
|
||||||
* @returns The field or NULL if not found
|
* @returns The field or NULL if not found
|
||||||
*/
|
*/
|
||||||
UAVObjectField* UAVObject::getField(QString& name)
|
UAVObjectField* UAVObject::getField(const QString& name)
|
||||||
{
|
{
|
||||||
QMutexLocker locker(mutex);
|
QMutexLocker locker(mutex);
|
||||||
// Look for field
|
// Look for field
|
||||||
|
@ -106,7 +106,7 @@ public:
|
|||||||
QMutex* getMutex();
|
QMutex* getMutex();
|
||||||
qint32 getNumFields();
|
qint32 getNumFields();
|
||||||
QList<UAVObjectField*> getFields();
|
QList<UAVObjectField*> getFields();
|
||||||
UAVObjectField* getField(QString& name);
|
UAVObjectField* getField(const QString& name);
|
||||||
QString toString();
|
QString toString();
|
||||||
QString toStringBrief();
|
QString toStringBrief();
|
||||||
QString toStringData();
|
QString toStringData();
|
||||||
|
Loading…
Reference in New Issue
Block a user