mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Linux: Make the C++ code compatible with old compilers (g++ 4.4.7 on CentOS 6)
This commit is contained in:
@@ -32,6 +32,15 @@
|
||||
|
||||
namespace VeraCrypt
|
||||
{
|
||||
class AdminPasswordRequestHandler : public GetStringFunctor
|
||||
{
|
||||
public:
|
||||
virtual void operator() (string &str)
|
||||
{
|
||||
throw ElevationFailed (SRC_POS, "sudo", 1, "");
|
||||
}
|
||||
};
|
||||
|
||||
UserInterface::UserInterface ()
|
||||
{
|
||||
}
|
||||
@@ -558,14 +567,6 @@ namespace VeraCrypt
|
||||
}
|
||||
else
|
||||
{
|
||||
struct AdminPasswordRequestHandler : public GetStringFunctor
|
||||
{
|
||||
virtual void operator() (string &str)
|
||||
{
|
||||
throw ElevationFailed (SRC_POS, "sudo", 1, "");
|
||||
}
|
||||
};
|
||||
|
||||
Core->SetAdminPasswordCallback (shared_ptr <GetStringFunctor> (new AdminPasswordRequestHandler));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user