Fix typos (#159)

This commit is contained in:
yan0f 2023-01-23 16:50:07 +03:00 committed by GitHub
parent 58bb8941a9
commit 940e06ef3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 20 additions and 20 deletions

View File

@ -158,8 +158,8 @@ QtLockedFile::LockMode QtLockedFile::lockMode() const
can be locked.
If \a block is true, this function will block until the lock is
aquired. If \a block is false, this function returns \e false
immediately if the lock cannot be aquired.
acquired. If \a block is false, this function returns \e false
immediately if the lock cannot be acquired.
If this object already has a lock of type \a mode, this function
returns \e true immediately. If this object has a lock of a

View File

@ -144,7 +144,7 @@ void QtSingleApplication::sysInit(const QString &appId)
/*!
Creates a QtSingleApplication object. The application identifier
will be QCoreApplication::applicationFilePath(). \a argc, \a
argv, and \a GUIenabled are passed on to the QAppliation constructor.
argv, and \a GUIenabled are passed on to the QApplication constructor.
If you are creating a console application (i.e. setting \a
GUIenabled to false), you may consider using
@ -161,7 +161,7 @@ QtSingleApplication::QtSingleApplication(int &argc, char **argv, bool GUIenabled
/*!
Creates a QtSingleApplication object with the application
identifier \a appId. \a argc and \a argv are passed on to the
QAppliation constructor.
QApplication constructor.
*/
QtSingleApplication::QtSingleApplication(const QString &appId, int &argc, char **argv)
@ -175,7 +175,7 @@ QtSingleApplication::QtSingleApplication(const QString &appId, int &argc, char *
/*!
Creates a QtSingleApplication object. The application identifier
will be QCoreApplication::applicationFilePath(). \a argc, \a
argv, and \a type are passed on to the QAppliation constructor.
argv, and \a type are passed on to the QApplication constructor.
*/
QtSingleApplication::QtSingleApplication(int &argc, char **argv, Type type)
: QApplication(argc, argv, type)

View File

@ -67,7 +67,7 @@
/*!
Creates a QtSingleCoreApplication object. The application identifier
will be QCoreApplication::applicationFilePath(). \a argc and \a
argv are passed on to the QCoreAppliation constructor.
argv are passed on to the QCoreApplication constructor.
*/
QtSingleCoreApplication::QtSingleCoreApplication(int &argc, char **argv)
@ -81,7 +81,7 @@ QtSingleCoreApplication::QtSingleCoreApplication(int &argc, char **argv)
/*!
Creates a QtSingleCoreApplication object with the application
identifier \a appId. \a argc and \a argv are passed on to the
QCoreAppliation constructor.
QCoreApplication constructor.
*/
QtSingleCoreApplication::QtSingleCoreApplication(const QString &appId, int &argc, char **argv)
: QCoreApplication(argc, argv)

View File

@ -55,8 +55,8 @@ public:
Press, /* Press event, emitted after debounce */
Release, /* Release event, emitted after debounce */
Short, /* Short event, emitted after InputTypeRelease done withing INPUT_LONG_PRESS interval */
Long, /* Long event, emmited after INPUT_LONG_PRESS interval, asynchronous to InputTypeRelease */
Repeat, /* Repeat event, emmited with INPUT_REPEATE_PRESS period after InputTypeLong event */
Long, /* Long event, emitted after INPUT_LONG_PRESS interval, asynchronous to InputTypeRelease */
Repeat, /* Repeat event, emitted with INPUT_REPEAT_PRESS period after InputTypeLong event */
};
Q_ENUM(InputType)

View File

@ -32,7 +32,7 @@ FlipperZero *AbstractTopLevelHelper::device()
void AbstractTopLevelHelper::onUpdateRegistryStateChanged()
{
if(m_updateRegistry->state() == UpdateRegistry::State::ErrorOccured) {
finishEarly(BackendError::InternetError, QStringLiteral("Failed to retreive update information"));
finishEarly(BackendError::InternetError, QStringLiteral("Failed to retrieve update information"));
} else if(m_updateRegistry->state() == UpdateRegistry::State::Ready) {
disconnect(m_updateRegistry, &UpdateRegistry::stateChanged, this, &AbstractTopLevelHelper::onUpdateRegistryStateChanged);

View File

@ -32,7 +32,7 @@ bool StorageReadOperation::hasMoreData() const
return m_subRequest != StorageRead;
}
// Custom feedResponse() implementation to accomodate the stat request
// Custom feedResponse() implementation to accommodate the stat request
void StorageReadOperation::feedResponse(QObject *response)
{
auto *mainResponse = qobject_cast<MainResponseInterface*>(response);

View File

@ -34,7 +34,7 @@ bool StorageWriteOperation::hasMoreData() const
return m_file->bytesAvailable() > 0;
}
// Custom feedResponse() implementation to accomodate interspersed pings
// Custom feedResponse() implementation to accommodate interspersed pings
void StorageWriteOperation::feedResponse(QObject *response)
{
auto *mainResponse = qobject_cast<MainResponseInterface*>(response);

View File

@ -12,7 +12,7 @@ if [ -d ".git" ]; then
fi
if [[ "$(uname -s)" != "Darwin" ]]; then
echo "This script needs to be runned under MacOS";
echo "This script needs to be run under MacOS";
exit 1;
fi

View File

@ -167,7 +167,7 @@ QByteArray USBDevice::extraInterfaceDescriptor(int interfaceNum, uint8_t type, i
((USB_CONFIGURATION_DESCRIPTOR*)buf)->bDescriptorType = USB_CONFIGURATION_DESCRIPTOR_TYPE;
const auto success = WinUsb_GetDescriptor(m_p->deviceHandle, USB_CONFIGURATION_DESCRIPTOR_TYPE, 0, 0, buf, BUF_SIZE, &sizeTransferred);
check_return_val(success == TRUE, "Failed to retreive configuration descriptor", ret);
check_return_val(success == TRUE, "Failed to retrieve configuration descriptor", ret);
for(ULONG i = 0; i < sizeTransferred;) {
auto *cd = (USB_COMMON_DESCRIPTOR*)(buf + i);

View File

@ -199,7 +199,7 @@ Section "-Cleanup"
SectionEnd
; Section to remove all Flipper Drivers, uncheked by default
; Section to remove all Flipper Drivers, unchecked by default
Section /o "un.Remove Drivers" RemoveDriversSection
DetailPrint "Removing drivers. This may take a while..."
nsExec::ExecToLog '$SYSDIR\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy RemoteSigned -File "${STM32_DRIVER_PATH}\delete_all_dfu_drivers.ps1"'

View File

@ -21,19 +21,19 @@ typedef enum _PB_CommandStatus {
/* *< Common Errors */
PB_CommandStatus_ERROR = 1, /* *< Unknown error */
PB_CommandStatus_ERROR_DECODE = 2, /* *< Command can't be decoded successfully - command_id in response may be wrong! */
PB_CommandStatus_ERROR_NOT_IMPLEMENTED = 3, /* *< Command succesfully decoded, but not implemented (deprecated or not yet implemented) */
PB_CommandStatus_ERROR_NOT_IMPLEMENTED = 3, /* *< Command successfully decoded, but not implemented (deprecated or not yet implemented) */
PB_CommandStatus_ERROR_BUSY = 4, /* *< Somebody took global lock, so not all commands are available */
PB_CommandStatus_ERROR_CONTINUOUS_COMMAND_INTERRUPTED = 14, /* *< Not received has_next == 0 */
PB_CommandStatus_ERROR_INVALID_PARAMETERS = 15, /* *< not provided (or provided invalid) crucial parameters to perform rpc */
/* *< Storage Errors */
PB_CommandStatus_ERROR_STORAGE_NOT_READY = 5, /* *< FS not ready */
PB_CommandStatus_ERROR_STORAGE_EXIST = 6, /* *< File/Dir alrady exist */
PB_CommandStatus_ERROR_STORAGE_EXIST = 6, /* *< File/Dir already exist */
PB_CommandStatus_ERROR_STORAGE_NOT_EXIST = 7, /* *< File/Dir does not exist */
PB_CommandStatus_ERROR_STORAGE_INVALID_PARAMETER = 8, /* *< Invalid API parameter */
PB_CommandStatus_ERROR_STORAGE_DENIED = 9, /* *< Access denied */
PB_CommandStatus_ERROR_STORAGE_INVALID_NAME = 10, /* *< Invalid name/path */
PB_CommandStatus_ERROR_STORAGE_INTERNAL = 11, /* *< Internal error */
PB_CommandStatus_ERROR_STORAGE_NOT_IMPLEMENTED = 12, /* *< Functon not implemented */
PB_CommandStatus_ERROR_STORAGE_NOT_IMPLEMENTED = 12, /* *< Function not implemented */
PB_CommandStatus_ERROR_STORAGE_ALREADY_OPEN = 13, /* *< File/Dir already opened */
PB_CommandStatus_ERROR_STORAGE_DIR_NOT_EMPTY = 18, /* *< Directory, you're going to remove is not empty */
/* *< Application Errors */

View File

@ -23,8 +23,8 @@ typedef enum _PB_Gui_InputType {
PB_Gui_InputType_PRESS = 0, /* *< Press event, emitted after debounce */
PB_Gui_InputType_RELEASE = 1, /* *< Release event, emitted after debounce */
PB_Gui_InputType_SHORT = 2, /* *< Short event, emitted after InputTypeRelease done withing INPUT_LONG_PRESS interval */
PB_Gui_InputType_LONG = 3, /* *< Long event, emmited after INPUT_LONG_PRESS interval, asynchronouse to InputTypeRelease */
PB_Gui_InputType_REPEAT = 4 /* *< Repeat event, emmited with INPUT_REPEATE_PRESS period after InputTypeLong event */
PB_Gui_InputType_LONG = 3, /* *< Long event, emitted after INPUT_LONG_PRESS interval, asynchronous to InputTypeRelease */
PB_Gui_InputType_REPEAT = 4 /* *< Repeat event, emitted with INPUT_REPEAT_PRESS period after InputTypeLong event */
} PB_Gui_InputType;
/* Struct definitions */