[glom] Some uses of boost/python/wqobject_fwd.hpp.



commit fdbdd2c1bdf3aa6d778d446b7562920d44f6fc05
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 16 10:06:29 2016 +0100

    Some uses of boost/python/wqobject_fwd.hpp.

 glom/libglom/python_embed/py_glom_related.h        |    1 +
 glom/libglom/python_embed/py_glom_relatedrecord.h  |    2 +-
 glom/libglom/python_embed/py_glom_ui.h             |    2 +-
 glom/libglom/python_embed/py_glom_ui_callbacks.h   |    2 --
 glom/libglom/python_embed/pygdavalue_conversions.h |    2 +-
 tests/python/test_python_execute_script.cc         |    1 +
 6 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/glom/libglom/python_embed/py_glom_related.h b/glom/libglom/python_embed/py_glom_related.h
index 62708bd..6b80fdf 100644
--- a/glom/libglom/python_embed/py_glom_related.h
+++ b/glom/libglom/python_embed/py_glom_related.h
@@ -23,6 +23,7 @@
 
 #include <libglom/python_embed/py_glom_record.h>
 #include <libglom/data_structure/relationship.h>
+#include <boost/python/object_fwd.hpp>
 
 namespace Glom
 {
diff --git a/glom/libglom/python_embed/py_glom_relatedrecord.h 
b/glom/libglom/python_embed/py_glom_relatedrecord.h
index ecf126a..4b2c0a7 100644
--- a/glom/libglom/python_embed/py_glom_relatedrecord.h
+++ b/glom/libglom/python_embed/py_glom_relatedrecord.h
@@ -21,7 +21,7 @@
 #ifndef GLOM_PYTHON_GLOM_RELATEDRECORD_H
 #define GLOM_PYTHON_GLOM_RELATEDRECORD_H
 
-#include <boost/python.hpp>
+#include <boost/python/object_fwd.hpp>
 
 #include <libglom/document/document.h>
 #include <libglom/data_structure/field.h>
diff --git a/glom/libglom/python_embed/py_glom_ui.h b/glom/libglom/python_embed/py_glom_ui.h
index 6982425..21dbc8f 100644
--- a/glom/libglom/python_embed/py_glom_ui.h
+++ b/glom/libglom/python_embed/py_glom_ui.h
@@ -21,7 +21,7 @@
 #ifndef GLOM_PYTHON_GLOM_UI_H
 #define GLOM_PYTHON_GLOM_UI_H
 
-#include <boost/python.hpp>
+#include <boost/python/object_fwd.hpp>
 
 #include <libglom/data_structure/field.h>
 #include <libglom/python_embed/py_glom_ui_callbacks.h>
diff --git a/glom/libglom/python_embed/py_glom_ui_callbacks.h 
b/glom/libglom/python_embed/py_glom_ui_callbacks.h
index 65f5580..eef8875 100644
--- a/glom/libglom/python_embed/py_glom_ui_callbacks.h
+++ b/glom/libglom/python_embed/py_glom_ui_callbacks.h
@@ -21,8 +21,6 @@
 #ifndef GLOM_PYTHON_GLOM_UI_CALLBACKS_H
 #define GLOM_PYTHON_GLOM_UI_CALLBACKS_H
 
-#include <boost/python.hpp>
-
 #include <libglom/document/document.h>
 #include <libglom/data_structure/field.h>
 #include <glibmm/ustring.h>
diff --git a/glom/libglom/python_embed/pygdavalue_conversions.h 
b/glom/libglom/python_embed/pygdavalue_conversions.h
index ebb93b5..fb727c1 100644
--- a/glom/libglom/python_embed/pygdavalue_conversions.h
+++ b/glom/libglom/python_embed/pygdavalue_conversions.h
@@ -6,7 +6,7 @@
 
 #include <glibmm/value.h>
 #include <libgda/libgda.h>
-#include <boost/python.hpp>
+#include <boost/python/object_fwd.hpp>
 
 
 bool glom_pygda_value_from_pyobject(GValue *boxed, const boost::python::object& input);
diff --git a/tests/python/test_python_execute_script.cc b/tests/python/test_python_execute_script.cc
index 255c5ce..015fea1 100644
--- a/tests/python/test_python_execute_script.cc
+++ b/tests/python/test_python_execute_script.cc
@@ -1,5 +1,6 @@
 #include <glom/libglom/init.h>
 #include <glom/python_embed/glom_python.h>
+#include <boost/python.hpp>
 #include <iostream>
 
 //Store results from the callbacks and check them later:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]