{ 0, 0, 0, 0 }
};
-const JSClassRef JSSoftKeyboardChangeEvent::getClassRef()
+JSClassRef JSSoftKeyboardChangeEvent::getClassRef()
{
if (!m_jsClassRef) {
m_jsClassRef = JSClassCreate(&m_classInfo);
/**
* This method initializes this in the JS Engine.
*/
- static const JSClassRef getClassRef();
+ static JSClassRef getClassRef();
/**
* Gets object's class description.
{ 0, 0, 0, 0 }
};
-const JSClassRef JSStorageEvent::getClassRef()
+JSClassRef JSStorageEvent::getClassRef()
{
if (!m_jsClassRef) {
m_jsClassRef = JSClassCreate(&m_classInfo);
JSValueRef JSStorageEvent::getStorageArea(
JSContextRef context,
- JSObjectRef object,
+ JSObjectRef /*object*/,
JSStringRef /*propertyName*/,
JSValueRef* exception)
{
/**
* This method initializes this in the JS Engine.
*/
- static const JSClassRef getClassRef();
+ static JSClassRef getClassRef();
/**
* Gets object's class description.
{ 0, 0, 0, 0 }
};
-const JSClassRef JSTizenServiceEvent::getClassRef()
+JSClassRef JSTizenServiceEvent::getClassRef()
{
if (!m_jsClassRef) {
m_jsClassRef = JSClassCreate(&m_classInfo);
/**
* This method initializes this in the JS Engine.
*/
- static const JSClassRef getClassRef();
+ static JSClassRef getClassRef();
/**
* Gets object's class description.
checkWidgetId();
if (!m_height.isValid()) {
- m_height.setValue(Commons::String::toInt(
+ m_height.setValue(Commons::String::convertTo<int>(
getProperty(ConfigAttribute::HEIGHT)));
}
return m_height.getValue();
checkWidgetId();
if (!m_width.isValid()) {
- m_width.setValue(Commons::String::toInt(
+ m_width.setValue(Commons::String::convertTo<int>(
getProperty(ConfigAttribute::WIDTH)));
}
return m_width.getValue();
#include <list>
extern "C" {
-typedef struct OpaqueJSClass* const (*ClassRef)();
+typedef struct OpaqueJSClass* (*ClassRef)();
}
namespace WrtPluginsApi {
#include <dpl/log/log.h>
#include <dpl/foreach.h>
-namespace {
-const char* DLL_ENTRY_POINT_NAME = "dll_api";
-}
-
namespace WrtPluginsApi {
void PluginRegistry::AddPlugin(const std::string& libraryName,
Plugin& plugin)
{ 0, 0, 0, 0 }
};
-const JSClassRef JSPreferences::getClassRef()
+JSClassRef JSPreferences::getClassRef()
{
if (!m_jsClassRef) {
m_jsClassRef = JSClassCreate(&m_classInfo);
/**
* This method initializes this in the JS Engine.
*/
- static const JSClassRef getClassRef();
+ static JSClassRef getClassRef();
/**
* Gets object's class description.
{ 0, 0, 0, 0 }
};
-const JSClassRef JSWidget::getClassRef()
+JSClassRef JSWidget::getClassRef()
{
if (!m_jsClassRef) {
m_jsClassRef = JSClassCreate(&m_classInfo);
/**
* This method initializes this in the JS Engine.
*/
- static const JSClassRef getClassRef();
+ static JSClassRef getClassRef();
/**
* Gets object's class description.
{
int ret = system("/usr/bin/widgetdb_tests_prepare_db.sh start");
- if (!WIFEXITED(ret)) { //unexpected termiate
+ if (!WIFEXITED(ret)) { //unexpected terminate
LogDebug("Fail while preparing database. Restoring");
- system("/usr/bin/widgetdb_tests_prepare_db.sh stop");
+ ret = system("/usr/bin/widgetdb_tests_prepare_db.sh stop");
+ if (ret != 0)
+ LogError("Finalization script has return error: " << ret);
+
return -1;
} else if (WEXITSTATUS(ret)) { //wrong script command, nothing done
LogError("Preparation script has return error: " << ret
WrtDB::WrtDatabase::detachFromThread();
- system("/usr/bin/widgetdb_tests_prepare_db.sh stop");
+ ret = system("/usr/bin/widgetdb_tests_prepare_db.sh stop");
+ if (ret != 0) {
+ LogError("Finalization script has return error: " << ret);
+ return -1;
+ }
+
return status;
}