summaryrefslogtreecommitdiff
path: root/comparison.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:02:17 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:02:17 +0200
commitb9203ee84953006547f4afd58f405874c87bf0dc (patch)
tree9e41f1533f120e9268e86658c52458630ffd718a /comparison.cpp
parent3.0 (diff)
downloadFreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.gz
FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.tar.bz2
FreeFileSync-b9203ee84953006547f4afd58f405874c87bf0dc.zip
3.1
Diffstat (limited to 'comparison.cpp')
-rw-r--r--comparison.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/comparison.cpp b/comparison.cpp
index c2593ed0..fb16d563 100644
--- a/comparison.cpp
+++ b/comparison.cpp
@@ -459,7 +459,7 @@ public:
bool filesHaveSameContent(const Zstring& filename1, const Zstring& filename2, CompareCallback* callback)
{
- const unsigned int BUFFER_SIZE = 512 * 1024; //512 kb seems to be the perfect buffer size
+ const unsigned int BUFFER_SIZE = 512 * 1024; //512 kb seems to be the perfect buffer size
static boost::scoped_array<unsigned char> memory1(new unsigned char[BUFFER_SIZE]);
static boost::scoped_array<unsigned char> memory2(new unsigned char[BUFFER_SIZE]);
@@ -724,7 +724,7 @@ wxString getConflictSameDateDiffSize(const FileMapping& fileObj)
//some beautification...
wxString left = wxString(_("Left")) + wxT(": ");
wxString right = wxString(_("Right")) + wxT(": ");
- const int maxPref = std::max(left.length(), right.length());
+ const size_t maxPref = std::max(left.length(), right.length());
left.Pad(maxPref - left.length(), wxT(' '), true);
right.Pad(maxPref - right.length(), wxT(' '), true);
@@ -745,7 +745,7 @@ wxString getConflictChangeWithinHour(const FileMapping& fileObj)
//some beautification...
wxString left = wxString(_("Left")) + wxT(": ");
wxString right = wxString(_("Right")) + wxT(": ");
- const int maxPref = std::max(left.length(), right.length());
+ const size_t maxPref = std::max(left.length(), right.length());
left.Pad(maxPref - left.length(), wxT(' '), true);
right.Pad(maxPref - right.length(), wxT(' '), true);
@@ -907,7 +907,7 @@ void CompareProcess::compareByContent(const std::vector<FolderPairCfg>& director
- const int objectsTotal = filesToCompareBytewise.size() * 2;
+ const size_t objectsTotal = filesToCompareBytewise.size() * 2;
const wxULongLong bytesTotal = getBytesToCompare(filesToCompareBytewise);
statusUpdater->initNewProcess(objectsTotal,
bgstack15