summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/autoform.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/inc/autoform.hxx b/sc/inc/autoform.hxx
index 938ef5e8dd56..a0831161dd1b 100644
--- a/sc/inc/autoform.hxx
+++ b/sc/inc/autoform.hxx
@@ -307,9 +307,13 @@ public:
bool Save( SvStream& rStream, sal_uInt16 fileVersion );
};
+struct DefaultFirstEntry {
+ bool operator() (const OUString& left, const OUString& right) const;
+};
+
class SC_DLLPUBLIC ScAutoFormat
{
- typedef boost::ptr_map<OUString, ScAutoFormatData> MapType;
+ typedef boost::ptr_map<OUString, ScAutoFormatData, DefaultFirstEntry> MapType;
MapType maData;
bool mbSaveLater;
ScAfVersions m_aVersions;