This patch initializes variables to prevent from having garbage values.
Coverity: 108757, 107570, 107274, 105091
Change-Id: If0ea245e771508a92f75d897049c9a7ede97e5db
Signed-off-by: mallikarjun82 <vm.arjun@samsung.com>
class URLImpl {
public:
explicit URLImpl(const std::string& url);
- URLImpl() {}
+ URLImpl();
std::string url() const { return url_; }
std::string scheme() const { return scheme_; }
void ExtractPath();
};
+URLImpl::URLImpl() : port_(0) {
+}
+
URLImpl::URLImpl(const std::string& url) : port_(0) {
if (url.empty())
return;
return &self;
}
-XWalkExtensionServer::XWalkExtensionServer() {
+XWalkExtensionServer::XWalkExtensionServer()
+ : ewk_context_(nullptr){
manager_.LoadExtensions();
}
progressbar_(NULL),
top_layout_(NULL),
rotation_(0),
- handler_id_(0) {
+ handler_id_(0),
+ natural_orientation_(ScreenOrientation::LANDSCAPE_PRIMARY) {
}
NativeWindow::~NativeWindow() {
SoftKeyboardChangeEventValue softkeyboard_value;
softkeyboard_value.state = "off";
+ softkeyboard_value.width = 0;
+ softkeyboard_value.height = 0;
self->listener_->OnSoftKeyboardChangeEvent(self->view_, softkeyboard_value);
};