From 649ef4c6b470a1222cd188dff2798bc0eec8e3a6 Mon Sep 17 00:00:00 2001 From: Brian Macy Date: Sat, 8 May 1999 21:21:10 +0000 Subject: [PATCH] Reference counted objects should be used *much* more carefully. This was completely unnecessary. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/resource.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wx/resource.h b/include/wx/resource.h index 74fa153f01..7e1f825e0f 100644 --- a/include/wx/resource.h +++ b/include/wx/resource.h @@ -77,14 +77,14 @@ class WXDLLEXPORT wxItemResource: public wxObject inline void SetValue4(const wxString& v) { m_value4 = v; } inline void SetStringValues(const wxStringList& svalues) { m_stringValues = svalues; } - inline wxString GetType() const { return m_itemType; } + inline const wxString& GetType() const { return m_itemType; } inline int GetX() const { return m_x; } inline int GetY() const { return m_y; } inline int GetWidth() const { return m_width; } inline int GetHeight() const { return m_height; } - inline wxString GetTitle() const { return m_title; } - inline wxString GetName() const { return m_name; } + inline const wxString& GetTitle() const { return m_title; } + inline const wxString& GetName() const { return m_name; } inline long GetStyle() const { return m_windowStyle; } inline int GetId() const { return m_windowId; }