Remove superfluous 'const' qualifier from trivial return types (#20652)
[platform/upstream/coreclr.git] / src / binder / inc / bindinglog.inl
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4 // ============================================================
5 //
6 // BindingLog.inl
7 //
8
9
10 //
11 // Implements inlined methods of BindingLog
12 //
13 // ============================================================
14
15 #ifndef __BINDER__BINDING_LOG_INL__
16 #define __BINDER__BINDING_LOG_INL__
17
18 BOOL BindingLog::CanLog()
19 {
20     return (m_pCDebugLog != NULL);
21 }
22
23 CDebugLog *BindingLog::GetDebugLog()
24 {
25     _ASSERTE(m_pCDebugLog != NULL);
26     return m_pCDebugLog;
27 }
28
29 HRESULT BindingLog::Log(LPCWSTR pwzInfo)
30 {
31     PathString info(pwzInfo);
32     return BindingLog::Log(info);
33 }
34
35 HRESULT BindingLog::Log(LPCWSTR  pwzPrefix,
36                         SString &info)
37 {
38     PathString message;
39
40     message.Append(pwzPrefix);
41     message.Append(info);
42
43     return Log(message);
44 }
45
46 #endif