-
Notifications
You must be signed in to change notification settings - Fork 663
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
base: master
Are you sure you want to change the base?
Postfix magic and vars #10151
Conversation
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; |
There was a problem hiding this comment.
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("-"))) { |
There was a problem hiding this comment.
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.
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.