summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-10-01 02:43:37 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-10-01 02:43:55 +0200
commitab314659448e3a1f6f3aaf9e9e7408cfcb4f0c7e (patch)
tree1da4521f007429c1a124bbdf795f3eb2e74d0445 /xmloff
parent0d0d3a0540dad2d0f417e21df1183dfc33964357 (diff)
fix Mac OSX build
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/impastpl.cxx18
1 files changed, 10 insertions, 8 deletions
diff --git a/xmloff/source/style/impastpl.cxx b/xmloff/source/style/impastpl.cxx
index c41b5dc92cb3..e52e00df2db5 100644
--- a/xmloff/source/style/impastpl.cxx
+++ b/xmloff/source/style/impastpl.cxx
@@ -594,6 +594,15 @@ struct AutoStylePoolExport
AutoStylePoolExport() : mpParent(NULL), mpProperties(NULL) {}
};
+struct StyleComparator
+{
+ bool operator() (const AutoStylePoolExport& a, const AutoStylePoolExport& b)
+ {
+ return (a.mpProperties->GetName() < b.mpProperties->GetName() ||
+ (a.mpProperties->GetName() == b.mpProperties->GetName() && *a.mpParent < *b.mpParent));
+ }
+};
+
}
void SvXMLAutoStylePoolP_Impl::exportXML(
@@ -653,15 +662,8 @@ void SvXMLAutoStylePoolP_Impl::exportXML(
if (bHack)
{
- struct {
- bool operator() (AutoStylePoolExport a, AutoStylePoolExport b)
- {
- return (a.mpProperties->GetName() < b.mpProperties->GetName() ||
- (a.mpProperties->GetName() == b.mpProperties->GetName() && *a.mpParent < *b.mpParent));
- }
- } aComparator;
- std::sort(aExpStyles.begin(), aExpStyles.end(), aComparator);
+ std::sort(aExpStyles.begin(), aExpStyles.end(), StyleComparator());
for (size_t i = 0; i < nCount; i++)
{