From 4b7ca3f26254f6692d1b17eb0df151382bb3b851 Mon Sep 17 00:00:00 2001 From: Zaba999 Date: Tue, 2 Oct 2012 21:44:14 +0200 Subject: Further work on saving profile and directory listing. --- src/common/profile.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common') diff --git a/src/common/profile.h b/src/common/profile.h index ed948ff..facb414 100644 --- a/src/common/profile.h +++ b/src/common/profile.h @@ -107,6 +107,6 @@ class CProfile : public CSingleton }; //! Global function to get profile instance -inline CProfile* GetProfile() { - return CProfile::GetInstancePointer(); +inline CProfile & GetProfile() { + return *CProfile::GetInstancePointer(); } -- cgit v1.2.3-1-g7c22