PartDesign: [skip ci] minor cosmetic changes

This commit is contained in:
wmayer
2020-10-31 13:32:18 +01:00
parent 6d1b292280
commit 9eb080488d
4 changed files with 10 additions and 4 deletions

View File

@@ -1301,7 +1301,7 @@ App::DocumentObjectExecReturn *Hole::execute(void)
}
}
void Hole::addCounterType(const CutDimensionSet dimensions)
void Hole::addCounterType(const CutDimensionSet& dimensions)
{
HoleCutTypeMap.emplace(dimensions.name, dimensions);
const std::string &name = dimensions.name;

View File

@@ -171,7 +171,7 @@ private:
std::map<std::string, CutDimensionSet> HoleCutTypeMap;
void addCounterType(const CutDimensionSet dimensions);
void addCounterType(const CutDimensionSet& dimensions);
bool isDynamicCounterbore(const std::string &holeCutType);
bool isDynamicCountersink(const std::string &holeCutType);
void updateHoleCutParams();

View File

@@ -7,6 +7,12 @@
#include <string> // string
#include <vector> // vector
/*
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
Copyright (c) 2013-2019 Niels Lohmann <http://nlohmann.me>.
*/
/*!
@brief namespace for Niels Lohmann
@see https://github.com/nlohmann

View File

@@ -148,7 +148,7 @@ add_custom_target(PartDesignHole ALL SOURCES
fc_target_copy_resource(PartDesignHole
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}/share/Mod/PartDesign
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/PartDesign
${PartDesignHoleDefines}
)
@@ -156,7 +156,7 @@ INSTALL(
FILES
${PartDesignHoleDefines}
DESTINATION
share/Mod/PartDesign/Resources/Hole
${CMAKE_INSTALL_DATADIR}/Mod/PartDesign/Resources/Hole
)
if(BUILD_FEM)