Merge pull request #317 from andreasb242/fix-warning

Fix warning
presentation
andreasb242 7 years ago committed by GitHub
commit 6dc579d692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .cproject
  2. 3
      src/control/RecentManager.cpp
  3. 2
      src/control/RecentManager.h
  4. 3
      src/control/ToolHandler.cpp
  5. 2
      src/control/ToolHandler.h
  6. 2
      src/control/ZoomControl.cpp
  7. 2
      src/control/ZoomControl.h
  8. 2
      src/control/jobs/ProgressListener.h
  9. 3
      src/gui/widgets/SpinPageAdapter.cpp
  10. 1
      src/gui/widgets/SpinPageAdapter.h
  11. 2
      src/model/Element.h
  12. 2
      src/undo/UndoRedoHandler.cpp
  13. 2
      src/undo/UndoRedoHandler.h
  14. 2
      src/util/serializing/Serializeable.h

@ -53,6 +53,9 @@
</tool>
</toolChain>
</folderInfo>
<sourceEntries>
<entry flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name="src"/>
</sourceEntries>
</configuration>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>

@ -16,6 +16,9 @@ using std::endl;
#define MIME_PDF "application/x-pdf"
#define GROUP "xournal++"
RecentManagerListener::~RecentManagerListener() { }
RecentManager::RecentManager()
{
XOJ_INIT_TYPE(RecentManager);

@ -23,6 +23,8 @@ using boost::filesystem::path;
class RecentManagerListener
{
public:
virtual ~RecentManagerListener();
/**
* This function is called whenever some file
* from the recent menu is opened

@ -6,6 +6,9 @@
#include <gtk/gtk.h>
#include <stdio.h>
ToolListener::~ToolListener() { }
ToolHandler::ToolHandler(ToolListener* listener, ActionHandler* actionHandler, Settings* settings)
{
XOJ_INIT_TYPE(ToolHandler);

@ -26,6 +26,8 @@ public:
virtual void setCustomColorSelected() = 0;
virtual void toolSizeChanged() = 0;
virtual void toolChanged() = 0;
virtual ~ToolListener();
};
class ActionHandler;

@ -2,6 +2,8 @@
const double zoomStep = 0.04;
ZoomListener::~ZoomListener() { }
ZoomControl::ZoomControl()
{
XOJ_INIT_TYPE(ZoomControl);

@ -26,6 +26,8 @@ class ZoomListener
public:
virtual void zoomChanged(double lastZoom) = 0;
virtual void zoomRangeValuesChanged();
virtual ~ZoomListener();
};
class ZoomControl

@ -16,4 +16,6 @@ class ProgressListener
public:
virtual void setMaximumState(int max) = 0;
virtual void setCurrentState(int state) = 0;
virtual ~ProgressListener() { };
};

@ -106,3 +106,6 @@ void SpinPageAdapter::firePageChanged()
listener->pageChanged(this->page);
}
}
SpinPageListener::~SpinPageListener() { }

@ -54,4 +54,5 @@ class SpinPageListener
{
public:
virtual void pageChanged(size_t page) = 0;
virtual ~SpinPageListener();
};

@ -28,6 +28,8 @@ class ShapeContainer
{
public:
virtual bool contains(double x, double y) = 0;
virtual ~ShapeContainer() { }
};
class Element : public Serializeable

@ -49,6 +49,8 @@ void printUndoList(GList* list)
#define PRINTCONTENTS()
#endif //UNDO_TRACE
UndoRedoListener::~UndoRedoListener() { }
UndoRedoHandler::UndoRedoHandler(Control* control)
{
XOJ_INIT_TYPE(UndoRedoHandler);

@ -21,6 +21,8 @@ class UndoRedoListener
public:
virtual void undoRedoChanged() = 0;
virtual void undoRedoPageChanged(PageRef page) = 0;
virtual ~UndoRedoListener();
};
class UndoRedoHandler

@ -23,4 +23,6 @@ class Serializeable
public:
virtual void serialize(ObjectOutputStream& out) = 0;
virtual void readSerialized(ObjectInputStream& in) throw (InputStreamException) = 0;
virtual ~Serializeable() { }
};

Loading…
Cancel
Save