case CONTACTS_CHANGE_INSERTED:
ins = true;
case CONTACTS_CHANGE_UPDATED:
- if (!ins)
- if (check(contacts_db_get_record(CALLH_VIEW_URI, uid, &record))) {
+ if (!ins &&
+ check(contacts_db_get_record(CALLH_VIEW_URI, uid, &record))) {
picojson::value::object val;
if (check(SerializeEntry(record, val))) {
if (ins)
} // namespace
-
bool CallHistoryInstance::CheckBackend() {
if (backendConnected_)
return true;
// Tizen requires this weird mapping on type
if (attributeName == "type") {
- if (matchValue == "IMAGE")
+ if (matchValue == "IMAGE") {
matchValue = "0";
- else if (matchValue == "VIDEO")
+ } else if (matchValue == "VIDEO") {
matchValue = "1";
- else if (matchValue == "AUDIO")
+ } else if (matchValue == "AUDIO") {
matchValue = "3";
- else if (matchValue == "OTHER") {
+ } else if (matchValue == "OTHER") {
matchValue = "4";
} else {
std::cerr << "Filter ERR: unknown media type " << matchValue << std::endl;
const std::string uid(args->download_uid);
DownloadItemRefPtr item = args->instance->downloads_[uid];
- long long unsigned file_size = 0;
+ long long unsigned file_size = 0; // NOLINT
CHECK(download_get_content_size(download_id, &file_size), args);
item->file_size = file_size;
}
// static
void DownloadInstance::OnProgressInfo(int download_id,
- long long unsigned received,
+ long long unsigned received, // NOLINT
void* user_param) {
DownloadArgs* args = static_cast<DownloadArgs*>(user_param);
DownloadItemRefPtr item =
class value;
-} // namespace
+} // namespace picojson
class DownloadInstance : public common::Instance {
public:
download_state_e state,
void* user_data);
static void OnProgressInfo(int download_id,
- long long unsigned received,
+ long long unsigned received, // NOLINT
void* user_param);
static void OnStartInfo(int download_id, void* user_param);
static void OnFinishedInfo(int download_id, void* user_param);
int download_id;
char* file_type;
- long long unsigned file_size;
+ long long unsigned file_size; // NOLINT
char* tmp_saved_path;
char* content_name;
// TODO(hdq): User should be able to choose store to external storage
// i.e. /opt/storage/sdcard/Downloads
const std::string default_folder("Downloads");
- const std::string location = destination.empty() ? default_folder : destination;
- std::string path = tzplatform_getenv(TZ_USER_CONTENT) + GetActualFolder(location);
+ const std::string location =
+ destination.empty() ? default_folder : destination;
+ std::string path =
+ tzplatform_getenv(TZ_USER_CONTENT) + GetActualFolder(location);
// Create path if not exist
struct stat path_stat;
#define MEDIASERVER_MEDIASERVER_INSTANCE_H_
#include <glib.h>
-#include <thread>
+#include <thread> // NOLINT
+
#include "common/extension.h"
class MediaServerManager;
#define SPEECH_SPEECH_INSTANCE_H_
#include <glib.h>
-#include <thread>
+#include <thread> // NOLINT
#include "common/extension.h"
#include "common/picojson.h"
! -path './packaging' \
! -name 'XW_Extension*.h' \
! -name 'picojson.*' \
- ! -path './download/*' \
\( -name '*.h' -o -name '*.cc' \) )
# Return to previous dir and return the code returned by cpplint.py