1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Formatting: Remove double-dots from comments and other strings

This commit is contained in:
reuk 2025-11-17 19:00:05 +00:00
parent 82dc6d1c7e
commit 83e5264c86
No known key found for this signature in database
209 changed files with 508 additions and 509 deletions

View file

@ -494,7 +494,7 @@ void CodeDocument::Position::moveBy (int characterDelta)
{
setPosition (getPosition());
// If moving right, make sure we don't get stuck between the \r and \n characters..
// If moving right, make sure we don't get stuck between the \r and \n characters.
if (line < owner->lines.size())
{
auto& l = *owner->lines.getUnchecked (line);
@ -711,7 +711,7 @@ bool CodeDocument::writeToStream (OutputStream& stream)
{
for (auto* l : lines)
{
auto temp = l->line; // use a copy to avoid bloating the memory footprint of the stored string.
auto temp = l->line; // use a copy to avoid bloating the memory footprint of the stored string
const char* utf8 = temp.toUTF8();
if (! stream.write (utf8, strlen (utf8)))
@ -869,7 +869,7 @@ void CodeDocument::checkLastLineStatus()
&& lines.getLast()->lineLength == 0
&& (lines.size() == 1 || ! lines.getUnchecked (lines.size() - 2)->endsWithLineBreak()))
{
// remove any empty lines at the end if the preceding line doesn't end in a newline.
// remove any empty lines at the end if the preceding line doesn't end in a newline
lines.removeLast();
}
@ -877,7 +877,7 @@ void CodeDocument::checkLastLineStatus()
if (lastLine != nullptr && lastLine->endsWithLineBreak())
{
// check that there's an empty line at the end if the preceding one ends in a newline..
// check that there's an empty line at the end if the preceding one ends in a newline
lines.add (new CodeDocumentLine (StringRef(), StringRef(), 0, 0,
lastLine->lineStartInFile + lastLine->lineLength));
}

View file

@ -64,8 +64,8 @@ public:
@param fileExtension the extension to use when loading/saving files, e.g. ".doc"
@param fileWildCard the wildcard to use in file dialogs, e.g. "*.doc"
@param openFileDialogTitle the title to show on an open-file dialog, e.g. "Choose a file to open.."
@param saveFileDialogTitle the title to show on an save-file dialog, e.g. "Choose a file to save as.."
@param openFileDialogTitle the title to show on an open-file dialog, e.g. "Choose a file to open"
@param saveFileDialogTitle the title to show on an save-file dialog, e.g. "Choose a file to save as"
*/
FileBasedDocument (const String& fileExtension,
const String& fileWildCard,

View file

@ -86,7 +86,7 @@ public:
}
else
{
assignNewKey(); // + button pressed..
assignNewKey(); // + button pressed
}
}
@ -118,7 +118,7 @@ public:
addButton (TRANS ("OK"), 1);
addButton (TRANS ("Cancel"), 0);
// (avoid return + escape keys getting processed by the buttons..)
// avoid return + escape keys getting processed by the buttons
for (auto* child : getChildren())
child->setWantsKeyboardFocus (false);

View file

@ -210,7 +210,7 @@ void LivePropertyEditorBase::findOriginalValueInCode()
if (p.isEmpty())
{
// Not sure how this would happen - some kind of mix-up between source code and line numbers..
// Not sure how this would happen - some kind of mix-up between source code and line numbers.
jassertfalse;
return;
}

View file

@ -65,9 +65,9 @@ namespace juce
void MyApp::myInitialisationWorkFinished()
{
// ..assuming this is some kind of callback method that is triggered when
// ...assuming this is some kind of callback method that is triggered when
// your background initialisation threads have finished, and it's time to open
// your main window, etc..
// your main window, etc.
splash->deleteAfterDelay (RelativeTime::seconds (4), false);

View file

@ -121,8 +121,8 @@ namespace ActiveXHelpers
JUCE_COMRESULT GetWindowContext (LPOLEINPLACEFRAME* lplpFrame, LPOLEINPLACEUIWINDOW* lplpDoc, LPRECT, LPRECT, LPOLEINPLACEFRAMEINFO lpFrameInfo) override
{
/* Note: If you call AddRef on the frame here, then some types of object (e.g. web browser control) cause leaks..
If you don't call AddRef then others crash (e.g. QuickTime).. Bit of a catch-22, so letting it leak is probably preferable.
/* Note: If you call AddRef on the frame here, then some types of object (e.g. web browser control) cause leaks.
If you don't call AddRef then others crash (e.g. QuickTime). Bit of a catch-22, so letting it leak is probably preferable.
*/
if (lplpFrame != nullptr) { frame->AddRef(); *lplpFrame = frame; }
if (lplpDoc != nullptr) *lplpDoc = nullptr;

View file

@ -124,7 +124,7 @@ private:
{
if ([view superview] != nil)
[view removeFromSuperview]; // Must be careful not to call this unless it's required - e.g. some Apple AU views
// override the call and use it as a sign that they're being deleted, which breaks everything..
// override the call and use it as a sign that they're being deleted, which breaks everything.
}
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (NSViewAttachment)

View file

@ -76,7 +76,7 @@ public:
{
if ([view superview] != nil)
[view removeFromSuperview]; // Must be careful not to call this unless it's required - e.g. some Apple AU views
// override the call and use it as a sign that they're being deleted, which breaks everything..
// override the call and use it as a sign that they're being deleted, which breaks everything.
currentPeer = peer;
if (peer != nullptr)

View file

@ -797,7 +797,7 @@ public:
{
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wundeclared-selector")
// WebKit doesn't capture mouse-moves itself, so it seems the only way to make
// them work is to push them via this non-public method..
// them work is to push them via this non-public method.
if ([webView.get() respondsToSelector: @selector (_updateMouseoverWithFakeEvent)])
[webView.get() performSelector: @selector (_updateMouseoverWithFakeEvent)];
JUCE_END_IGNORE_WARNINGS_GCC_LIKE

View file

@ -74,7 +74,7 @@ public:
{
// when the component becomes invisible, some stuff like flash
// carries on playing audio, so we need to force it onto a blank
// page to avoid this..
// page to avoid this.
owner.blankPageShown = true;
goToURL ("about:blank", nullptr, nullptr);
@ -478,7 +478,7 @@ public:
{
// when the component becomes invisible, some stuff like flash
// carries on playing audio, so we need to force it onto a blank
// page to avoid this..
// page to avoid this.
owner.blankPageShown = true;
goToURL ("about:blank", nullptr, nullptr);