From 49b72370bead75737043ddc40fad93c1d44471c5 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 12 Sep 2013 17:08:06 -0700 Subject: [PATCH] fix UUID getter to match the private variable --- domain-server/src/main.cpp | 2 +- libraries/shared/src/Assignment.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/domain-server/src/main.cpp b/domain-server/src/main.cpp index c6f8023999..32959139d9 100644 --- a/domain-server/src/main.cpp +++ b/domain-server/src/main.cpp @@ -76,7 +76,7 @@ static void mongooseUploadHandler(struct mg_connection *conn, const char *path) QString newPath(ASSIGNMENT_SCRIPT_HOST_LOCATION); newPath += "/"; // append the UUID for this script as the new filename, remove the curly braces - newPath += scriptAssignment.getGUID().toString().mid(1, scriptAssignment.getGUID().toString().length() - 2); + newPath += scriptAssignment.getUUID().toString().mid(1, scriptAssignment.getUUID().toString().length() - 2); // rename the saved script to the GUID of the assignment and move it to the script host locaiton rename(path, newPath.toStdString().c_str()); diff --git a/libraries/shared/src/Assignment.h b/libraries/shared/src/Assignment.h index 2b1618ffca..d34c436a6c 100644 --- a/libraries/shared/src/Assignment.h +++ b/libraries/shared/src/Assignment.h @@ -48,7 +48,7 @@ public: ~Assignment(); - const QUuid& getGUID() const { return _uuid; } + const QUuid& getUUID() const { return _uuid; } Assignment::Command getCommand() const { return _command; } Assignment::Type getType() const { return _type; } Assignment::Location getLocation() const { return _location; }