@@ -2746,14 +2746,14 @@ error Context::Login(
2746
2746
}
2747
2747
}
2748
2748
2749
- error Context::AsyncSignup (const std::string &email,
2749
+ void Context::AsyncSignup (const std::string &email,
2750
2750
const std::string &password,
2751
2751
const uint64_t country_id) {
2752
2752
std::thread backgroundThread ([&](std::string email, std::string password, uint64_t country_id) {
2753
2753
return this ->Signup (email, password, country_id);
2754
2754
}, email, password, country_id);
2755
2755
backgroundThread.detach ();
2756
- return noError ;
2756
+ return ;
2757
2757
}
2758
2758
2759
2759
error Context::Signup (
@@ -2782,13 +2782,13 @@ error Context::GoogleSignup(
2782
2782
return Login (access_token, kGoogleAccessToken , true );
2783
2783
}
2784
2784
2785
- error Context::AsyncGoogleSignup (const std::string &access_token,
2785
+ void Context::AsyncGoogleSignup (const std::string &access_token,
2786
2786
const uint64_t country_id) {
2787
2787
std::thread backgroundThread ([&](std::string access_token, uint64_t country_id) {
2788
2788
return this ->GoogleSignup (access_token, country_id);
2789
2789
}, access_token, country_id);
2790
2790
backgroundThread.detach ();
2791
- return noError ;
2791
+ return ;
2792
2792
}
2793
2793
2794
2794
error Context::AppleSignup (
@@ -2803,15 +2803,15 @@ error Context::AppleSignup(
2803
2803
return Login (access_token, kAppleAccessToken , true );
2804
2804
}
2805
2805
2806
- error Context::AsyncAppleSignup (
2806
+ void Context::AsyncAppleSignup (
2807
2807
const std::string &access_token,
2808
2808
const uint64_t country_id,
2809
2809
const std::string &full_name) {
2810
2810
std::thread backgroundThread ([&](std::string access_token, uint64_t country_id, std::string full_name) {
2811
2811
return this ->AppleSignup (access_token, country_id, full_name);
2812
2812
}, access_token, country_id, full_name);
2813
2813
backgroundThread.detach ();
2814
- return noError ;
2814
+ return ;
2815
2815
}
2816
2816
2817
2817
void Context::setUser (User *value, const bool logged_in) {
@@ -5751,12 +5751,8 @@ error Context::pushChanges(
5751
5751
}
5752
5752
5753
5753
// Update project id on time entries if needed
5754
- err = updateEntryProjects (
5755
- projects,
5756
- time_entries);
5757
- if (err != noError) {
5758
- return err;
5759
- }
5754
+ updateEntryProjects (projects, time_entries);
5755
+
5760
5756
project_stopwatch.stop ();
5761
5757
ss << " | " << projects.size () << " projects in "
5762
5758
<< project_stopwatch.elapsed () / 1000 << " ms" ;
@@ -5897,7 +5893,7 @@ error Context::pushProjects(
5897
5893
return err;
5898
5894
}
5899
5895
5900
- error Context::updateProjectClients (const std::vector<Client *> &clients,
5896
+ void Context::updateProjectClients (const std::vector<Client *> &clients,
5901
5897
const std::vector<Project *> &projects) {
5902
5898
for (auto it = projects.cbegin (); it != projects.cend (); ++it) {
5903
5899
if (!(*it)->CID () && !(*it)->ClientGUID ().empty ()) {
@@ -5911,10 +5907,10 @@ error Context::updateProjectClients(const std::vector<Client *> &clients,
5911
5907
}
5912
5908
}
5913
5909
5914
- return noError ;
5910
+ return ;
5915
5911
}
5916
5912
5917
- error Context::updateEntryProjects (const std::vector<Project *> &projects,
5913
+ void Context::updateEntryProjects (const std::vector<Project *> &projects,
5918
5914
const std::vector<TimeEntry *> &time_entries) {
5919
5915
for (std::vector<TimeEntry *>::const_iterator it =
5920
5916
time_entries.begin ();
@@ -5932,7 +5928,7 @@ error Context::updateEntryProjects(const std::vector<Project *> &projects,
5932
5928
}
5933
5929
}
5934
5930
5935
- return noError ;
5931
+ return ;
5936
5932
}
5937
5933
5938
5934
error Context::pushEntries (
@@ -6776,10 +6772,10 @@ error Context::ToSAccept() {
6776
6772
return noError;
6777
6773
}
6778
6774
6779
- error Context::ToggleEntriesGroup (std::string name) {
6775
+ void Context::ToggleEntriesGroup (std::string name) {
6780
6776
entry_groups[name] = !entry_groups[name];
6781
6777
OpenTimeEntryList ();
6782
- return noError ;
6778
+ return ;
6783
6779
}
6784
6780
6785
6781
error Context::AsyncPullCountries () {
0 commit comments