summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--logic/JavaUtils.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/logic/JavaUtils.cpp b/logic/JavaUtils.cpp
index 91463688..278046e9 100644
--- a/logic/JavaUtils.cpp
+++ b/logic/JavaUtils.cpp
@@ -177,33 +177,33 @@ QList<QString> JavaUtils::FindJavaPaths()
}
#elif OSX
-QList<JavaVersionPtr> JavaUtils::FindJavaPaths()
+QList<QString> JavaUtils::FindJavaPaths()
{
QLOG_INFO() << "OS X Java detection incomplete - defaulting to \"java\"";
- QList<JavaVersionPtr> javas;
- javas.append(this->GetDefaultJava());
+ QList<QString> javas;
+ javas.append(this->GetDefaultJava()->path);
return javas;
}
#elif LINUX
-QList<JavaVersionPtr> JavaUtils::FindJavaPaths()
+QList<QString> JavaUtils::FindJavaPaths()
{
QLOG_INFO() << "Linux Java detection incomplete - defaulting to \"java\"";
- QList<JavaVersionPtr> javas;
- javas.append(this->GetDefaultJava());
+ QList<QString> javas;
+ javas.append(this->GetDefaultJava()->path);
return javas;
}
#else
-QList<JavaVersionPtr> JavaUtils::FindJavaPaths()
+QList<QString> JavaUtils::FindJavaPaths()
{
QLOG_INFO() << "Unknown operating system build - defaulting to \"java\"";
- QList<JavaVersionPtr> javas;
- javas.append(this->GetDefaultJava());
+ QList<QString> javas;
+ javas.append(this->GetDefaultJava()->path);
return javas;
}