Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1408)

Unified Diff: chrome/browser/sync/glue/bookmark_model_associator.h

Issue 5577003: Coverity: Pass parameters by reference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/bookmark_model_associator.h
diff --git a/chrome/browser/sync/glue/bookmark_model_associator.h b/chrome/browser/sync/glue/bookmark_model_associator.h
index 8dce2876015c6413247d76fc9cd81b826e11ec2b..37b8e35be85cc09879dd7052f380ac1d6aba1544 100644
--- a/chrome/browser/sync/glue/bookmark_model_associator.h
+++ b/chrome/browser/sync/glue/bookmark_model_associator.h
@@ -61,7 +61,7 @@ class BookmarkModelAssociator
// Returns sync id for the given bookmark node id.
// Returns sync_api::kInvalidId if the sync node is not found for the given
// bookmark node id.
- virtual int64 GetSyncIdFromChromeId(int64 node_id);
+ virtual int64 GetSyncIdFromChromeId(const int64& node_id);
// Returns the bookmark node for the given sync id.
// Returns NULL if no bookmark node is found for the given sync id.
@@ -70,7 +70,7 @@ class BookmarkModelAssociator
// Initializes the given sync node from the given bookmark node id.
// Returns false if no sync node was found for the given bookmark node id or
// if the initialization of sync node fails.
- virtual bool InitSyncNodeFromChromeId(int64 node_id,
+ virtual bool InitSyncNodeFromChromeId(const int64& node_id,
sync_api::BaseNode* sync_node);
// Associates the given bookmark node with the given sync id.
« no previous file with comments | « chrome/browser/sync/glue/autofill_profile_model_associator.cc ('k') | chrome/browser/sync/glue/bookmark_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698