Skip to content

Commit

Permalink
JimEvans: Initializing value_ member of Response to Json::Value::null…
Browse files Browse the repository at this point in the history
… upon creation.

r18450
  • Loading branch information
jimevans committed Jan 10, 2013
1 parent 47a4da8 commit 5ee81ca
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions cpp/IEDriverServer/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ available via the project downloads page. Changes in "revision" field indicate
private releases checked into the prebuilts directory of the source tree, but
not made generally available on the downloads page.

v2.28.0.4
=========
* Initialized value_ member of Response to Json::Value::null upon creation.
* Suppressed warnings written to console during browser startup and shutdown.
* Updated to correctly return the current version in the JSON response for the
/status end point of the JSON wire protocol.
* Added usage info to IEDriverServer.exe when using /? /h or /help. Also
removed dead code from ScreenshotCommandHandler.

v2.28.0.3
=========
* Introduced the "requireWindowFocus" capability into the IE driver. When used
Expand Down
Binary file modified cpp/IEDriverServer/IEDriverServer.rc
Binary file not shown.
Binary file modified cpp/prebuilt/Win32/Release/IEDriverServer.exe
Binary file not shown.
Binary file modified cpp/prebuilt/x64/Release/IEDriverServer.exe
Binary file not shown.
3 changes: 2 additions & 1 deletion cpp/webdriver-server/response.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@

namespace webdriver {

Response::Response(void) : status_code_(0), session_id_("") {
Response::Response(void) : status_code_(0), session_id_(""), value_(Json::Value::null) {
}

Response::Response(const std::string& session_id) {
this->session_id_ = session_id;
this->status_code_ = 0;
this->value_ = Json::Value::null;
}

Response::~Response(void) {
Expand Down

0 comments on commit 5ee81ca

Please sign in to comment.