aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-11-03 18:52:44 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-11-03 18:52:44 -0700
commit11c9a523f7cd8cc324606c543311de1edcaee6cb (patch)
tree4c1d13bb4d08af30b5b59b655e448fcb05c40e12
parent95ef1b95e6e2f7933bb40f428514dcf178b201e6 (diff)
downloadvcpkg-11c9a523f7cd8cc324606c543311de1edcaee6cb.tar.gz
vcpkg-11c9a523f7cd8cc324606c543311de1edcaee6cb.zip
[SourceParagraph] Make function static
-rw-r--r--toolsrc/include/SourceParagraph.h2
-rw-r--r--toolsrc/src/SourceParagraph.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/toolsrc/include/SourceParagraph.h b/toolsrc/include/SourceParagraph.h
index 9c9439ea7..bac005144 100644
--- a/toolsrc/include/SourceParagraph.h
+++ b/toolsrc/include/SourceParagraph.h
@@ -7,8 +7,6 @@ namespace vcpkg
{
struct SourceParagraph
{
- static const std::vector<std::string>& get_list_of_valid_fields();
-
SourceParagraph();
explicit SourceParagraph(std::unordered_map<std::string, std::string> fields);
diff --git a/toolsrc/src/SourceParagraph.cpp b/toolsrc/src/SourceParagraph.cpp
index f46a9c2af..6f25dbded 100644
--- a/toolsrc/src/SourceParagraph.cpp
+++ b/toolsrc/src/SourceParagraph.cpp
@@ -19,7 +19,7 @@ namespace vcpkg
static const std::string BUILD_DEPENDS = "Build-Depends";
}
- const std::vector<std::string>& SourceParagraph::get_list_of_valid_fields()
+ static const std::vector<std::string>& get_list_of_valid_fields()
{
static const std::vector<std::string> valid_fields =
{