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) {
TJAlienCredentialsObject TJAlienCredentials::get(CredentialsKind kind) {
if(this->has(kind)) {
return found_credentials[kind];
} else {
return TJAlienCredentialsObject();
}
}
......
......@@ -16,7 +16,7 @@
using std::string;
using std::vector;
class TJAlienDNSResolver : TObject {
class TJAlienDNSResolver : public TObject {
public:
TJAlienDNSResolver(string host, int port);
string get_next_host();
......
......@@ -23,8 +23,8 @@ TString TJClientFile::getDefaultPath() {
sprintf(jclientFileLocation, "%s%s%s", P_tmpdir, "/jclient_token_", cUserId);
defaultJClientPath = TString(jclientFileLocation);
delete cUserId;
delete jclientFileLocation;
delete[] cUserId;
delete[] jclientFileLocation;
return defaultJClientPath;
}
......
Supports Markdown
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