summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-09 11:57:40 +0200
committerNoel Grandin <noel@peralex.com>2014-10-10 09:31:42 +0200
commit8ab1e7cdecc31c481ac5b28aab48fda4151577cf (patch)
tree04eb6004cf4bfb8ab8653e686063912f97087963 /sw
parent6d848b2aaf4eb814dba90a3db8e5494530dc0ada (diff)
only one value of the postit sort enum was being used
..so bin it Change-Id: Iff6bad245a5fdd14fb785f7f5b3ca65ab51b742b
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/PostItMgr.hxx6
-rw-r--r--sw/source/uibase/docvw/PostItMgr.cxx11
2 files changed, 4 insertions, 13 deletions
diff --git a/sw/inc/PostItMgr.hxx b/sw/inc/PostItMgr.hxx
index b7c7f052a9a9..1334ee43291d 100644
--- a/sw/inc/PostItMgr.hxx
+++ b/sw/inc/PostItMgr.hxx
@@ -60,10 +60,6 @@ class SwFrm;
namespace vcl { class Window; }
struct ImplSVEvent;
-#define SORT_POS 1
-#define SORT_AUTHOR 2
-#define SORT_DATE 3
-
#define COL_NOTES_SIDEPANE_ARROW_ENABLED RGB_COLORDATA(0,0,0)
#define COL_NOTES_SIDEPANE_ARROW_DISABLED RGB_COLORDATA(172,168,153)
@@ -187,7 +183,7 @@ class SwPostItMgr: public SfxListener
void InsertItem( SfxBroadcaster* pItem, bool bCheckExistance, bool bFocus);
void RemoveItem( SfxBroadcaster* pBroadcast );
- void Sort(const short aType);
+ void Sort();
public:
SwPostItMgr(SwView* aDoc);
diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx
index 54366223c8d3..ae461032e4ae 100644
--- a/sw/source/uibase/docvw/PostItMgr.cxx
+++ b/sw/source/uibase/docvw/PostItMgr.cxx
@@ -492,7 +492,7 @@ bool SwPostItMgr::CalcRects()
// show notes in right order in navigator
//prevent Anchors during layout to overlap, e.g. when moving a frame
- Sort(SORT_POS);
+ Sort();
// sort the items into the right page vector, so layout can be done by page
for(std::list<SwSidebarItem*>::iterator i = mvPostItFlds.begin(); i != mvPostItFlds.end() ; ++i)
@@ -1472,16 +1472,11 @@ void SwPostItMgr::Show()
LayoutPostIts();
}
-void SwPostItMgr::Sort(const short aType)
+void SwPostItMgr::Sort()
{
if (mvPostItFlds.size()>1 )
{
- switch (aType)
- {
- case SORT_POS:
- mvPostItFlds.sort(comp_pos);
- break;
- }
+ mvPostItFlds.sort(comp_pos);
}
}