Browse Source

Projucer: Fix gcc 10 warnings

tags/2021-05-28
reuk 4 years ago
parent
commit
7fe7104eea
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
2 changed files with 2 additions and 6 deletions
  1. +2
    -0
      extras/Projucer/Source/Application/StartPage/jucer_StartPageComponent.cpp
  2. +0
    -6
      extras/Projucer/Source/LiveBuildEngine/jucer_ClassDatabase.h

+ 2
- 0
extras/Projucer/Source/Application/StartPage/jucer_StartPageComponent.cpp View File

@@ -150,7 +150,9 @@ static std::unique_ptr<Component> createProjectTemplatesTab (ContentComponent& c
StartPageTreeHolder::Open::yes);
holder->setSelectedItem (categories[0], 1);
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wredundant-move")
return std::move (holder);
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
}
//==============================================================================


+ 0
- 6
extras/Projucer/Source/LiveBuildEngine/jucer_ClassDatabase.h View File

@@ -208,12 +208,6 @@ struct ClassDatabase
noDefaultConstructor (false)
{}
InstantiationFlags (const InstantiationFlags& other)
: isAbstract (other.isAbstract),
inAnonymousNamespace (other.inAnonymousNamespace),
noDefaultConstructor (other.noDefaultConstructor)
{}
bool canBeInstantiated() const noexcept
{
return ! (isAbstract || inAnonymousNamespace || noDefaultConstructor);


Loading…
Cancel
Save