Just like the other .cxx files in starmath, make this one include unomodel.hxx and get the definition of the A2OU macro from there
instead of redefining it.
I hope ommitting this header inclusion was not intentional, it builds at least with it included :)

Jani
>From 753c0a3ff6704045d3837581a2299f4c20b76452 Mon Sep 17 00:00:00 2001
From: Jani Monoses <[email protected]>
Date: Sat, 30 Oct 2010 01:55:47 +0300
Subject: [PATCH 1/2] Include header file instead of redefining a macro.

---
 starmath/source/accessibility.cxx |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index 6b8f72b..75311fc 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -61,6 +61,7 @@
 
 #include "accessibility.hxx"
 #include <applicat.hxx>
+#include <unomodel.hxx>
 #include <document.hxx>
 #include <view.hxx>
 
@@ -70,8 +71,6 @@ using namespace com::sun::star::lang;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::accessibility;
 
-#define A2OU(cChar)  rtl::OUString::createFromAscii(cChar)
-
 //////////////////////////////////////////////////////////////////////
 
 static awt::Rectangle lcl_GetBounds( Window *pWin )
-- 
1.7.0.4

_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to