Kaydet (Commit) 2ea733e5 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in SalXLib

Change-Id: Id3f8cf95479aa4e03bc6dcb05c5475ae462cfe5a
üst 3b724500
......@@ -159,7 +159,7 @@ protected:
fd_set aExceptionFDS_;
Display *m_pDisplay;
SalI18N_InputMethod *m_pInputMethod;
std::unique_ptr<SalI18N_InputMethod> m_pInputMethod;
public:
SalXLib();
......@@ -181,7 +181,7 @@ public:
virtual bool CheckTimeout( bool bExecuteTimers = true );
SalI18N_InputMethod* GetInputMethod() const { return m_pInputMethod; }
SalI18N_InputMethod* GetInputMethod() const { return m_pInputMethod.get(); }
Display* GetDisplay() const { return m_pDisplay; }
};
......
......@@ -376,7 +376,7 @@ SalXLib::~SalXLib()
close (m_pTimeoutFDS[0]);
close (m_pTimeoutFDS[1]);
delete m_pInputMethod;
m_pInputMethod.reset();
}
static Display *OpenX11Display(OString& rDisplay)
......@@ -433,7 +433,7 @@ static Display *OpenX11Display(OString& rDisplay)
void SalXLib::Init()
{
m_pInputMethod = new SalI18N_InputMethod;
m_pInputMethod.reset( new SalI18N_InputMethod );
m_pInputMethod->SetLocale();
XrmInitialize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment