1
0
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:
peabody124 2010-07-19 05:37:12 +00:00 committed by peabody124
parent 37c9e1affd
commit 89e0c687d7
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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();