Commit 5e1ffa6e authored by Nikola Hardi's avatar Nikola Hardi
Browse files

Make the code compile with LLVM and on MacOS

parent 51266a27
...@@ -142,6 +142,8 @@ bool TJAlienCredentials::has(CredentialsKind kind) { ...@@ -142,6 +142,8 @@ bool TJAlienCredentials::has(CredentialsKind kind) {
TJAlienCredentialsObject TJAlienCredentials::get(CredentialsKind kind) { TJAlienCredentialsObject TJAlienCredentials::get(CredentialsKind kind) {
if(this->has(kind)) { if(this->has(kind)) {
return found_credentials[kind]; return found_credentials[kind];
} else {
return TJAlienCredentialsObject();
} }
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
using std::string; using std::string;
using std::vector; using std::vector;
class TJAlienDNSResolver : TObject { class TJAlienDNSResolver : public TObject {
public: public:
TJAlienDNSResolver(string host, int port); TJAlienDNSResolver(string host, int port);
string get_next_host(); string get_next_host();
......
...@@ -23,8 +23,8 @@ TString TJClientFile::getDefaultPath() { ...@@ -23,8 +23,8 @@ TString TJClientFile::getDefaultPath() {
sprintf(jclientFileLocation, "%s%s%s", P_tmpdir, "/jclient_token_", cUserId); sprintf(jclientFileLocation, "%s%s%s", P_tmpdir, "/jclient_token_", cUserId);
defaultJClientPath = TString(jclientFileLocation); defaultJClientPath = TString(jclientFileLocation);
delete cUserId; delete[] cUserId;
delete jclientFileLocation; delete[] jclientFileLocation;
return defaultJClientPath; return defaultJClientPath;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment