diff --git a/examples/osgvnc/osgvnc.cpp b/examples/osgvnc/osgvnc.cpp index 35089afb9..52d424178 100644 --- a/examples/osgvnc/osgvnc.cpp +++ b/examples/osgvnc/osgvnc.cpp @@ -54,7 +54,7 @@ int main(int argc,char** argv) { } - std::string url, username, password; + std::string url, username; while (arguments.read("--login", url, username, password)) { osgDB::Registry::instance()->getOrCreateAuthenticationMap()->addAuthenticationDetails( @@ -71,7 +71,7 @@ int main(int argc,char** argv) if (!password.empty()) { - const osgDB::AuthenticationMap* authenticationMap = osgDB::Registry::instance()->getOrCreateAuthenticationMap(); + osgDB::AuthenticationMap* authenticationMap = osgDB::Registry::instance()->getOrCreateAuthenticationMap(); const osgDB::AuthenticationDetails* details = authenticationMap->getAuthenticationDetails(hostname); if (details == NULL) {