From f9f7032b5df26ecddb07ecf79ed5e0dbad12e3a8 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 31 Oct 2011 22:50:37 +0000 Subject: [PATCH] warnings: Fix up several const qualified return types. llvm-svn: 143379 --- lldb/include/lldb/Core/FormatClasses.h | 2 +- lldb/include/lldb/Target/Target.h | 4 ++-- lldb/source/Core/FormatClasses.cpp | 2 +- lldb/source/Target/Target.cpp | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lldb/include/lldb/Core/FormatClasses.h b/lldb/include/lldb/Core/FormatClasses.h index cf9258ae9fbc..850ae9038352 100644 --- a/lldb/include/lldb/Core/FormatClasses.h +++ b/lldb/include/lldb/Core/FormatClasses.h @@ -483,7 +483,7 @@ public: return m_head.GetCount(); } - const int + int GetRealIndexForIndex(int i); bool diff --git a/lldb/include/lldb/Target/Target.h b/lldb/include/lldb/Target/Target.h index 38410430f189..ec4f67103a7d 100644 --- a/lldb/include/lldb/Target/Target.h +++ b/lldb/include/lldb/Target/Target.h @@ -507,7 +507,7 @@ public: /// /// @return \b true if the module should be excluded, \b false otherwise. //------------------------------------------------------------------ - const bool + bool ModuleIsExcludedForNonModuleSpecificSearches (const FileSpec &module_spec); //------------------------------------------------------------------ @@ -529,7 +529,7 @@ public: /// /// @return \b true if the module should be excluded, \b false otherwise. //------------------------------------------------------------------ - const bool + bool ModuleIsExcludedForNonModuleSpecificSearches (const lldb::ModuleSP &module_sp); ArchSpec & diff --git a/lldb/source/Core/FormatClasses.cpp b/lldb/source/Core/FormatClasses.cpp index ef067344480a..04b57adabe42 100644 --- a/lldb/source/Core/FormatClasses.cpp +++ b/lldb/source/Core/FormatClasses.cpp @@ -278,7 +278,7 @@ SyntheticScriptProvider::GetDescription() return sstr.GetString(); } -const int +int SyntheticArrayView::GetRealIndexForIndex(int i) { if (i >= GetCount()) diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 367bfc8d9c84..5c4f0caa868a 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -935,7 +935,7 @@ Target::ModulesDidUnload (ModuleList &module_list) } -const bool +bool Target::ModuleIsExcludedForNonModuleSpecificSearches (const FileSpec &module_spec) { @@ -965,7 +965,7 @@ Target::ModuleIsExcludedForNonModuleSpecificSearches (const FileSpec &module_spe } } -const bool +bool Target::ModuleIsExcludedForNonModuleSpecificSearches (const lldb::ModuleSP &module_sp) { if (!m_breakpoints_use_platform_avoid)