summaryrefslogtreecommitdiff
path: root/src/standards/Tizen/Mediacontent/JSMediacontent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/standards/Tizen/Mediacontent/JSMediacontent.cpp')
-rwxr-xr-xsrc/standards/Tizen/Mediacontent/JSMediacontent.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/standards/Tizen/Mediacontent/JSMediacontent.cpp b/src/standards/Tizen/Mediacontent/JSMediacontent.cpp
index bad5baa..3141372 100755
--- a/src/standards/Tizen/Mediacontent/JSMediacontent.cpp
+++ b/src/standards/Tizen/Mediacontent/JSMediacontent.cpp
@@ -404,13 +404,13 @@ JSValueRef JSMediacontent::findItems(
{
long count = filterConverter->toLong(arguments[5]);
- if(count > 0.0)
+ if(count > 0)
{
dplEvent->setLimit(count);
}
- else if ( count == 0.0)
+ else if ( count == 0)
{
- dplEvent->setLimit(-1);
+ dplEvent->setLimit(-1); // -1 is all row.
}
else
{
@@ -423,13 +423,13 @@ JSValueRef JSMediacontent::findItems(
if(argumentCount >= 7) //optional unsigned long? offset
{
long offset = filterConverter->toLong(arguments[6]);
- if(offset != 0.0)
+ if(offset != 0)
{
dplEvent->setOffset(offset);
}
else
{
- dplEvent->setOffset(-1);
+ dplEvent->setOffset(0);
}
}
dplEvent->setPrivateData( DPL::StaticPointerCast<IEventPrivateData> (cbm));