Skip to content
Browse files

Fix few more warnings

  • Loading branch information...
1 parent bd6a753 commit 66919e3da499fdecb857957b476d9d0eae872ac1 @tea tea committed
Showing with 6 additions and 6 deletions.
  1. +1 −1 src/Cell.cpp
  2. +1 −1 src/Cell.h
  3. +1 −1 src/Lines.cpp
  4. +1 −1 src/Lines.h
  5. +1 −1 src/Macro.h
  6. +1 −1 src/eApp.h
View
2 src/Cell.cpp
@@ -20,7 +20,7 @@ void Cell::Destroy() {
delete this;
}
-const int Cell::GetWidth() {
+int Cell::GetWidth() {
return width;
}
View
2 src/Cell.h
@@ -28,7 +28,7 @@ class Cell {
explicit Cell(const wxDC& dc);
virtual ~Cell() {};
virtual void Destroy();
- const int GetWidth();
+ int GetWidth();
void SetStyle(const wxColour& fc, const wxColour& bc);
virtual void DrawCell(int xoffset, int yoffset, const wxRect& rect)=0;
View
2 src/Lines.cpp
@@ -674,7 +674,7 @@ void Lines::RemoveAllSelections(bool checkShadow, unsigned int pos) {
}
const vector<interval>& Lines::GetSelections() const { return selections; }
-const interval* const Lines::FirstSelection() const { return selections.empty() ? NULL : &(selections[0]); }
+const interval* Lines::FirstSelection() const { return selections.empty() ? NULL : &(selections[0]); }
void Lines::Clear() {
ll->clear();
View
2 src/Lines.h
@@ -108,7 +108,7 @@ class Lines: public ILinePositions {
int AddSelection(unsigned int start, unsigned int end);
int UpdateSelection(unsigned int sel_id, unsigned int start, unsigned int end);
const std::vector<interval>& GetSelections() const;
- const interval* const FirstSelection() const;
+ const interval* FirstSelection() const;
void ShadowSelections(bool isShadow=true) {m_isSelShadow = isShadow;};
void RemoveAllSelections(bool checkShadow=false, unsigned int pos=0);
void RemoveSelection(unsigned int sel_id);
View
2 src/Macro.h
@@ -122,7 +122,7 @@ class eMacro {
const eMacroCmd& GetCommand(size_t ndx) const {return m_cmds[ndx];};
eMacroCmd& GetCommand(size_t ndx) {m_isModified = true; return m_cmds[ndx];};
- const void Last() const {m_cmds.back();};
+ void Last() const {m_cmds.back();};
eMacroCmd& Last() {m_isModified = true; return m_cmds.back();};
eMacroCmd& Add(const wxString& cmd) {
View
2 src/eApp.h
@@ -51,7 +51,7 @@ class eApp : public wxApp,
int OnExit();
const wxString& VersionName() const { return m_version_name; }
- const unsigned int VersionId() const { return m_version_id; }
+ unsigned int VersionId() const { return m_version_id; }
// Frames
EditorFrame* NewFrame();

0 comments on commit 66919e3

Please sign in to comment.
Something went wrong with that request. Please try again.