Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postfix magic and vars #10151

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

pitzelrivera
Copy link

Contribution to issue #5709
Though this fix is not all encompassing to the project, I changed the variable names in files that were not static and clearly defined by use.
In regard to magic numbers, I only changed magic numbers not used in defines or function arguments.

@CLAassistant
Copy link

CLAassistant commented Sep 28, 2022

CLA assistant check
All committers have signed the CLA.

@ownclouders
Copy link
Contributor

ownclouders commented Sep 28, 2022

Results for GUI-tests https://drone.owncloud.com/owncloud/client/13304/6/1

@@ -72,7 +72,8 @@ std::shared_ptr<HBITMAP> saveImage(const string &data)
Gdiplus::GdiplusStartupInput gdiplusStartupInput;
Gdiplus::GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, nullptr);

DWORD size = 2 * 1024;
const int bytesPerKibibyte = 1024;
DWORD size = 2 * bytesPerKibibyte;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe lift my _kb operator from testchunkingng.cpp:19, put it in a utility file, and use it here?

options.uplimit = it.next().toInt() * 1000;
} else if (option == QLatin1String("--downlimit") && !it.peekNext().startsWith(QLatin1String("-"))) {
options.downlimit = it.next().toInt() * 1000;
} else if (option == QLatin1String("--uplimitKbPerSec") && !it.peekNext().startsWith(QLatin1String("-"))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't change the commandline arguments, the change would break existing scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants