Skip to content

Commit

Permalink
Refs #5827 Instantiate GridDomain::g_log
Browse files Browse the repository at this point in the history
  • Loading branch information
jmborr committed Sep 10, 2012
1 parent 0c9adf8 commit 7c8867d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/API/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set ( SRC_FILES
# src/GridDomain.cpp
src/GridDomain.cpp
# src/GridDomain1D.cpp
src/ITransformScale.cpp
src/TransformScaleFactory.cpp
Expand Down Expand Up @@ -116,7 +116,7 @@ set ( SRC_UNITY_IGNORE_FILES src/CompositeFunction.cpp

set ( INC_FILES
# inc/MantidAPI/BoxCtrlChangesInterface.h
# inc/MantidAPI/GridDomain.h
inc/MantidAPI/GridDomain.h
# inc/MantidAPI/GridDomain1D.h
inc/MantidAPI/ITransformScale.h
inc/MantidAPI/TransformScaleFactory.h
Expand Down
5 changes: 3 additions & 2 deletions Code/Mantid/Framework/API/inc/MantidAPI/GridDomain.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Includes
//----------------------------------------------------------------------
#include <boost/shared_ptr.hpp>
#include <vector>

#include "MantidAPI/DllConfig.h"
#include "MantidAPI/FunctionDomain.h"
Expand Down Expand Up @@ -59,8 +60,8 @@ class MANTID_API_DLL GridDomain: public API::FunctionDomain
static Kernel::Logger& g_log;

private:
/// composition of grids
std::vector< boost::shared_ptr<GridDomain> > m_grids;
/// composition of grids
std::vector< boost::shared_ptr<GridDomain> > m_grids;

}; // class IGridDomain

Expand Down
2 changes: 2 additions & 0 deletions Code/Mantid/Framework/API/src/GridDomain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ namespace Mantid
namespace API
{

Kernel::Logger& GridDomain::g_log = Kernel::Logger::get("GridDomain");

/// number of points in the grid
size_t GridDomain::size() const{
if( !m_grids.size() ) return 0;
Expand Down

0 comments on commit 7c8867d

Please sign in to comment.