Skip to content

Commit 982d79d

Browse files
committed
Removing now deprecated non-standard tr1 namespace from IE driver
1 parent b60a701 commit 982d79d

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

cpp/iedriver/Alert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
namespace webdriver {
2424

25-
Alert::Alert(std::tr1::shared_ptr<DocumentHost> browser, HWND handle) {
25+
Alert::Alert(std::shared_ptr<DocumentHost> browser, HWND handle) {
2626
LOG(TRACE) << "Entering Alert::Alert";
2727
this->browser_ = browser;
2828
this->alert_handle_ = handle;

cpp/iedriver/Alert.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DocumentHost;
3030

3131
class Alert {
3232
public:
33-
Alert(std::tr1::shared_ptr<DocumentHost> browser, HWND handle);
33+
Alert(std::shared_ptr<DocumentHost> browser, HWND handle);
3434
virtual ~Alert(void);
3535

3636
int Accept(void);
@@ -97,7 +97,7 @@ class Alert {
9797
static BOOL CALLBACK FindTextBoxes(HWND hwnd, LPARAM arg);
9898

9999
HWND alert_handle_;
100-
std::tr1::shared_ptr<DocumentHost> browser_;
100+
std::shared_ptr<DocumentHost> browser_;
101101
bool is_standard_alert_;
102102
bool is_security_alert_;
103103
bool is_standard_control_alert_;

cpp/iedriver/CommandHandlerRepository.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace webdriver {
2525
// Forward declaration of classes.
2626
class IECommandHandler;
2727

28-
typedef std::tr1::shared_ptr<IECommandHandler> CommandHandlerHandle;
28+
typedef std::shared_ptr<IECommandHandler> CommandHandlerHandle;
2929

3030
class CommandHandlerRepository {
3131
public:
@@ -45,4 +45,4 @@ class CommandHandlerRepository {
4545

4646
} // namespace webdriver
4747

48-
#endif // WEBDRIVER_IE_COMMANDHANDLERREPOSITORY_H_
48+
#endif // WEBDRIVER_IE_COMMANDHANDLERREPOSITORY_H_

cpp/iedriver/CustomTypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
namespace webdriver {
2323

2424
class Element;
25-
typedef std::tr1::shared_ptr<Element> ElementHandle;
25+
typedef std::shared_ptr<Element> ElementHandle;
2626

2727
class DocumentHost;
28-
typedef std::tr1::shared_ptr<DocumentHost> BrowserHandle;
28+
typedef std::shared_ptr<DocumentHost> BrowserHandle;
2929

3030
} // namespace webdriver
3131

cpp/iedriver/ElementRepository.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ElementRepository {
3838
void ClearCache(void);
3939
void Clear(void);
4040
private:
41-
typedef std::tr1::unordered_map<std::string, ElementHandle> ElementMap;
41+
typedef std::unordered_map<std::string, ElementHandle> ElementMap;
4242
ElementMap managed_elements_;
4343
};
4444

cpp/iedriver/IECommandExecutor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class IECommandExecutor : public CWindowImpl<IECommandExecutor> {
197197
}
198198

199199
private:
200-
typedef std::tr1::unordered_map<std::string, BrowserHandle> BrowserMap;
200+
typedef std::unordered_map<std::string, BrowserHandle> BrowserMap;
201201
typedef std::map<std::string, std::wstring> ElementFindMethodMap;
202202

203203
void AddManagedBrowser(BrowserHandle browser_wrapper);

cpp/webdriver-server/server.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ void Server::AddCommand(const std::string& url,
214214
const std::string& http_verb,
215215
const std::string& command_name) {
216216
if (this->commands_.find(url) == this->commands_.end()) {
217-
this->commands_[url] = std::tr1::shared_ptr<UriInfo>(
217+
this->commands_[url] = std::shared_ptr<UriInfo>(
218218
new UriInfo(url, http_verb, command_name));
219219
} else {
220220
this->commands_[url]->AddHttpVerb(http_verb, command_name);

cpp/webdriver-server/server.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace webdriver {
3737
class UriInfo;
3838
class Session;
3939

40-
typedef std::tr1::shared_ptr<Session> SessionHandle;
40+
typedef std::shared_ptr<Session> SessionHandle;
4141

4242
class Server {
4343
public:
@@ -70,7 +70,7 @@ class Server {
7070

7171
private:
7272
typedef std::map<std::string, SessionHandle> SessionMap;
73-
typedef std::map<std::string, std::tr1::shared_ptr<UriInfo> > UrlMap;
73+
typedef std::map<std::string, std::shared_ptr<UriInfo> > UrlMap;
7474

7575
void Initialize(const int port,
7676
const std::string& host,

0 commit comments

Comments
 (0)