Skip to content

Commit

Permalink
Fix some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
variar committed Mar 15, 2016
1 parent a79e227 commit 26adf4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/crawlerwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,8 @@ void CrawlerWidget::updateEncoding()
static const char* latin1_encoding = "iso-8859-1";
static const char* utf8_encoding = "utf-8";

const char* encoding;
const char* encoding = latin1_encoding;
encoding_text_ = tr( "Displayed as ISO-8859-1" );

switch ( encodingSetting_ ) {
case ENCODING_AUTO:
Expand All @@ -935,9 +936,9 @@ void CrawlerWidget::updateEncoding()
break;
case ENCODING_ISO_8859_1:
default:
encoding = latin1_encoding;
encoding_text_ = tr( "Displayed as ISO-8859-1" );
break;


}

logData_->setDisplayEncoding( encoding );
Expand Down
4 changes: 2 additions & 2 deletions src/marks.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class Marks {
qint64 getLineMarkedByIndex( int index ) const
{ return marks_[index].lineNumber(); }
// Return the total number of marks
int size() const
{ return marks_.size(); }
uint32_t size() const
{ return static_cast<uint32_t>(marks_.size()); }
// Completely clear the marks list.
void clear();

Expand Down

0 comments on commit 26adf4b

Please sign in to comment.