[kdevelop] languages/cpp/cppduchain: Minor: Fix warnings

Milian Wolff mail at milianw.de
Wed Oct 16 17:02:03 UTC 2013


On Wednesday 16 October 2013 07:30:06 Kevin Funk wrote:
> Git commit c0235f2a2cfc2a559e92755bb5e467fc7582b266 by Kevin Funk.
> Committed on 16/10/2013 at 07:28.
> Pushed by kfunk into branch 'master'.
> 
> Minor: Fix warnings
> 
> M  +2    -0    languages/cpp/cppduchain/typeconversion.cpp
> M  +0    -1    languages/cpp/cppduchain/typeutils.cpp
> 
> http://commits.kde.org/kdevelop/c0235f2a2cfc2a559e92755bb5e467fc7582b266
> 
> diff --git a/languages/cpp/cppduchain/typeconversion.cpp
> b/languages/cpp/cppduchain/typeconversion.cpp index b7fc570..dd1f23b 100644
> --- a/languages/cpp/cppduchain/typeconversion.cpp
> +++ b/languages/cpp/cppduchain/typeconversion.cpp
> @@ -610,6 +610,8 @@ bool TypeConversion::isAccessible(const
> ClassMemberDeclaration* decl) {
> 
>  ConversionRank TypeConversion::ellipsisConversion( AbstractType::Ptr from,
> AbstractType::Ptr to ) {
> +  Q_UNUSED(from);
> +

This should preferrably be fixed by cleanup up the function to not take the 
from argument at all anymore.

While at it, make the to a const& argument.

Any JJ takers?
-- 
Milian Wolff
mail at milianw.de
http://milianw.de


More information about the KDevelop-devel mailing list