commit 9f84283940691305d5942ef6efc6ba7d7192abd1
parent 263262b02f75d13d7ed94cd4775426d37ba32422
Author: cfillion <cfillion@users.noreply.github.com>
Date: Wed, 24 Aug 2016 01:31:04 -0400
refactoring – use C array for built-in data when possible
Diffstat:
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/config.cpp b/src/config.cpp
@@ -82,7 +82,7 @@ void Config::restoreSelfRemote()
void Config::restoreDefaultRemotes()
{
- const vector<pair<string,string> > repos = {
+ const pair<string,string> repos[] = {
{"ReaTeam Scripts",
"https://github.com/ReaTeam/ReaScripts/raw/master/index.xml"},
{"ReaTeam JSFX",
diff --git a/src/main.cpp b/src/main.cpp
@@ -19,8 +19,6 @@
#include "menu.hpp"
#include "reapack.hpp"
-#include <vector>
-
#define REAPERAPI_IMPLEMENT
#include <reaper_plugin_functions.h>
@@ -35,7 +33,7 @@ static bool loadAPI(void *(*getFunc)(const char *))
{
struct ApiFunc { void **ptr; const char *name; bool required; };
- const vector<ApiFunc> funcs = {
+ const ApiFunc funcs[] = {
REQUIRED_API(AddExtensionsMainMenu),
REQUIRED_API(file_exists),
@@ -49,6 +47,7 @@ static bool loadAPI(void *(*getFunc)(const char *))
REQUIRED_API(Splash_GetWnd), // v4.7
OPTIONAL_API(AddRemoveReaScript), // v5.12
+
};
for(const ApiFunc &func : funcs) {