[Libreoffice-commits] core.git: sc/inc sc/source

Kohei Yoshida kohei.yoshida at collabora.com
Sat Nov 15 15:19:57 PST 2014


 sc/inc/document.hxx             |    2 +-
 sc/source/core/data/patattr.cxx |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3cf226622a3d8c09d655034dbcc81695f1662b87
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Sat Nov 15 18:16:47 2014 -0500

    Remove tools/fract.hxx from document.hxx.
    
    If a forward declaration does the job, use that.  Adding a new header
    in document.hxx is a very expensive operation since almost everyone in sc
    includes document.hxx.
    
    Change-Id: I2d78440d65da7207ceb16cb28a7404249eba066a

diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 40ca14d..689e97c 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -37,7 +37,6 @@
 #include "compressedarray.hxx"
 #include "calcmacros.hxx"
 #include "calcconfig.hxx"
-#include <tools/fract.hxx>
 #include <tools/gen.hxx>
 #include <svl/zforlist.hxx>
 
@@ -84,6 +83,7 @@ struct ReorderParam;
 
 }
 
+class Fraction;
 class SvxFontItem;
 
 class KeyEvent;
diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx
index 5e46e08..0e9f930 100644
--- a/sc/source/core/data/patattr.cxx
+++ b/sc/source/core/data/patattr.cxx
@@ -48,6 +48,7 @@
 #include <svl/zforlist.hxx>
 #include <vcl/outdev.hxx>
 #include <vcl/svapp.hxx>
+#include <tools/fract.hxx>
 
 #include "patattr.hxx"
 #include "docpool.hxx"


More information about the Libreoffice-commits mailing list