D20064 enhances GDriveUrl with new constants and some of the same logic used in KIOGDrive. This patch refactors KIOGDrive to make use of it.
Details
Details
Diff Detail
Diff Detail
- Repository
- R219 KIO GDrive
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
src/kio_gdrive.cpp | ||
---|---|---|
84 | I wouldn't bother with this honestly. I think it's better to be explicit here (also to keep consistency with other kioslaves). | |
889 | This variable is actually useless, we could just use destGDriveUrl.filename() in the setTitle() call below. | |
1056–1058 | Same here, just use: destFile->setTitle(destGDriveUrl.filename()); |