[gnote] Fix compiler warnings
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix compiler warnings
- Date: Sun, 17 Jun 2012 17:54:54 +0000 (UTC)
commit a525249b4bcd20dfc9af4a1da80333ef84c60dbd
Author: Aurimas Äernius <aurisc4 gmail com>
Date: Sun Jun 17 20:49:26 2012 +0300
Fix compiler warnings
src/synchronization/syncmanager.cpp | 4 ++--
src/watchers.cpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/synchronization/syncmanager.cpp b/src/synchronization/syncmanager.cpp
index c4f8120..5dcd29e 100644
--- a/src/synchronization/syncmanager.cpp
+++ b/src/synchronization/syncmanager.cpp
@@ -283,7 +283,7 @@ namespace sync {
// Handle notes modified or added on server
DBG_OUT("Sync: GetNoteUpdatesSince rev %d", m_client->last_synchronized_revision());
std::map<std::string, NoteUpdate> noteUpdates = server->get_note_updates_since(m_client->last_synchronized_revision());
- DBG_OUT("Sync: %d updates since rev %d", noteUpdates.size(), m_client->last_synchronized_revision());
+ DBG_OUT("Sync: %d updates since rev %d", int(noteUpdates.size()), m_client->last_synchronized_revision());
// Gather list of new/updated note titles
// for title conflict handling purposes.
@@ -399,7 +399,7 @@ namespace sync {
}
}
- DBG_OUT("Sync: Uploading %d note updates", newOrModifiedNotes.size());
+ DBG_OUT("Sync: Uploading %d note updates", int(newOrModifiedNotes.size()));
if(newOrModifiedNotes.size() > 0) {
set_state(UPLOADING);
server->upload_notes(newOrModifiedNotes); // TODO: Callbacks to update GUI as upload progresses
diff --git a/src/watchers.cpp b/src/watchers.cpp
index 210fe5f..8c37419 100644
--- a/src/watchers.cpp
+++ b/src/watchers.cpp
@@ -1025,7 +1025,7 @@ namespace gnote {
}
DBG_OUT("Highlighting wikiword: '%s' at offset %d",
- match.c_str(), segment.length());
+ match.c_str(), int(segment.length()));
if (!manager().find(match)) {
get_buffer()->apply_tag (m_broken_link_tag, start_cpy, end);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]