Skip to content

Commit 80337fe

Browse files
Robert ColemanRobert Coleman
authored andcommitted
Edits made after review
1 parent 9d92d19 commit 80337fe

File tree

100 files changed

+140
-140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+140
-140
lines changed

snippets/cpp/VS_Snippets_CLR_System/system.Random.Next/CPP/next3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ void main()
88
unsigned int numbers = 0;
99
Random^ rnd = gcnew Random();
1010

11-
if (! UInt32::TryParse(line, numbers))
11+
if (!UInt32::TryParse(line, numbers))
1212
numbers = 10;
1313

1414
for (unsigned int ctr = 1; ctr <= numbers; ctr++)

snippets/cpp/VS_Snippets_CLR_System/system.String.Format/cpp/formatexample2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ref class CustomerFormatter : IFormatProvider, ICustomFormatter
2121
Object^ arg,
2222
IFormatProvider^ formatProvider)
2323
{
24-
if (! this->Equals(formatProvider))
24+
if (!this->Equals(formatProvider))
2525
{
2626
return nullptr;
2727
}

snippets/cpp/VS_Snippets_CLR_System/system.runtime.compilerservices.internalsvisibletoattribute/cpp/friend1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ref class FileUtilities
55
public:
66
static String^ AppendDirectorySeparator(String^ dir)
77
{
8-
if (! dir->Trim()->EndsWith(System::IO::Path::DirectorySeparatorChar.ToString()))
8+
if (!dir->Trim()->EndsWith(System::IO::Path::DirectorySeparatorChar.ToString()))
99
return dir->Trim() + System::IO::Path::DirectorySeparatorChar;
1010
else
1111
return dir;

snippets/csharp/System.Globalization/DateTimeFormatInfo/GetAllDateTimePatterns/getalldatetimepatternsex1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static void Main()
1414

1515
foreach (var fmt in culture.DateTimeFormat.GetAllDateTimePatterns()) {
1616
total += 1;
17-
if (! DateTime.TryParse(date1.ToString(fmt), out date2)) {
17+
if (!DateTime.TryParse(date1.ToString(fmt), out date2)) {
1818
noRoundTrip++;
1919
Console.WriteLine("Unable to parse {0:" + fmt + "} (format '{1}')",
2020
date1, fmt);

snippets/csharp/System.Globalization/DateTimeFormatInfo/GetAllDateTimePatterns/getalldatetimepatternsex2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static void Main()
1919
noRoundTrip = 0;
2020
foreach (var pattern in culture.DateTimeFormat.GetAllDateTimePatterns(fmt)) {
2121
total++;
22-
if (! DateTime.TryParse(date1.ToString(pattern), out date2)) {
22+
if (!DateTime.TryParse(date1.ToString(pattern), out date2)) {
2323
noRoundTrip++;
2424
Console.WriteLine("Unable to parse {0:" + pattern + "} (format '{1}')",
2525
date1, pattern);

snippets/csharp/System.Globalization/SortVersion/Overview/example1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static void Main()
3535
SortVersion ver = null;
3636

3737
// If the data has not been saved, create it.
38-
if (! File.Exists(FILENAME)) {
38+
if (!File.Exists(FILENAME)) {
3939
regions = GenerateData();
4040
ver = CultureInfo.CurrentCulture.CompareInfo.Version;
4141
reindex = true;

snippets/csharp/System.IdentityModel.Tokens/IssuerNameRegistry/Overview/scripts/jquery-1.5.1-vsdoc.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,7 +2269,7 @@ jQuery.event = {
22692269
elem = window;
22702270
}
22712271

2272-
if (! handler) {
2272+
if (!handler) {
22732273
handler = returnFalse;
22742274
} else if ( !handler ) {
22752275
// Fixes bug #7229. Fix recommended by jdalton
@@ -2416,7 +2416,7 @@ jQuery.event = {
24162416
return;
24172417
}
24182418

2419-
if (! handler) {
2419+
if (!handler) {
24202420
handler = returnFalse;
24212421
}
24222422

@@ -2713,7 +2713,7 @@ jQuery.event = {
27132713

27142714
if ( ret !== undefined ) {
27152715
event.result = ret;
2716-
if (! ret) {
2716+
if (!ret) {
27172717
event.preventDefault();
27182718
event.stopPropagation();
27192719
}
@@ -3594,7 +3594,7 @@ function liveHandler( event ) {
35943594
if ( !ret || event.isPropagationStopped() ) {
35953595
maxLevel = match.level;
35963596

3597-
if (! ret) {
3597+
if (!ret) {
35983598
stop = false;
35993599
}
36003600
if ( event.isImmediatePropagationStopped() ) {

snippets/csharp/System.IdentityModel.Tokens/IssuerNameRegistry/Overview/scripts/jquery-1.5.1.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -617,13 +617,13 @@ jQuery.extend({
617617
if ( args ) {
618618
if ( isObj ) {
619619
for ( name in object ) {
620-
if (! callback.apply( object[ name ], args )) {
620+
if (!callback.apply( object[ name ], args )) {
621621
break;
622622
}
623623
}
624624
} else {
625625
for ( ; i < length; ) {
626-
if (! callback.apply( object[ i++ ], args )) {
626+
if (!callback.apply( object[ i++ ], args )) {
627627
break;
628628
}
629629
}
@@ -633,7 +633,7 @@ jQuery.extend({
633633
} else {
634634
if ( isObj ) {
635635
for ( name in object ) {
636-
if (! callback.call( object[ name ], name, object[ name ] )) {
636+
if (!callback.call( object[ name ], name, object[ name ] )) {
637637
break;
638638
}
639639
}
@@ -2161,7 +2161,7 @@ jQuery.event = {
21612161
}
21622162
catch ( e ) {}
21632163

2164-
if (! handler) {
2164+
if (!handler) {
21652165
handler = returnFalse;
21662166
} else if ( !handler ) {
21672167
// Fixes bug #7229. Fix recommended by jdalton
@@ -2287,7 +2287,7 @@ jQuery.event = {
22872287
return;
22882288
}
22892289

2290-
if (! handler) {
2290+
if (!handler) {
22912291
handler = returnFalse;
22922292
}
22932293

@@ -2566,7 +2566,7 @@ jQuery.event = {
25662566

25672567
if ( ret !== undefined ) {
25682568
event.result = ret;
2569-
if (! ret) {
2569+
if (!ret) {
25702570
event.preventDefault();
25712571
event.stopPropagation();
25722572
}
@@ -3259,7 +3259,7 @@ function liveHandler( event ) {
32593259
if ( !ret || event.isPropagationStopped() ) {
32603260
maxLevel = match.level;
32613261

3262-
if (! ret) {
3262+
if (!ret) {
32633263
stop = false;
32643264
}
32653265
if ( event.isImmediatePropagationStopped() ) {
@@ -6702,7 +6702,7 @@ jQuery.extend({
67026702
ifModifiedKey = s.url;
67036703

67046704
// Add anti-cache in url if needed
6705-
if (! s.cache) {
6705+
if (!s.cache) {
67066706

67076707
var ts = jQuery.now(),
67086708
// try replacing _= if it is there

snippets/csharp/System.IdentityModel.Tokens/IssuerNameRegistry/Overview/scripts/jquery-ui-1.8.11.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3459,7 +3459,7 @@ $.widget("ui.sortable", $.ui.mouse, {
34593459

34603460
}
34613461

3462-
if(!scrolled && $.ui.ddmanager && !o.dropBehaviour)
3462+
if(scrolled && $.ui.ddmanager && !o.dropBehaviour)
34633463
$.ui.ddmanager.prepareOffsets(this, event);
34643464
}
34653465

@@ -5168,7 +5168,7 @@ $.widget( "ui.autocomplete", {
51685168
}
51695169

51705170
clearTimeout( this.closing );
5171-
if (! this._trigger( "search", event )) {
5171+
if (!this._trigger( "search", event )) {
51725172
return;
51735173
}
51745174

@@ -6913,7 +6913,7 @@ $.widget( "ui.slider", $.ui.mouse, {
69136913
self._keySliding = true;
69146914
$( this ).addClass( "ui-state-active" );
69156915
allowed = self._start( event, index );
6916-
if (! allowed) {
6916+
if (!allowed) {
69176917
return;
69186918
}
69196919
}
@@ -7042,7 +7042,7 @@ $.widget( "ui.slider", $.ui.mouse, {
70427042
}
70437043

70447044
allowed = this._start( event, index );
7045-
if (! allowed) {
7045+
if (!allowed) {
70467046
return false;
70477047
}
70487048
this._mouseSliding = true;
@@ -7692,7 +7692,7 @@ $.widget( "ui.tabs", {
76927692
}
76937693

76947694
// reset cache if switching from cached to not cached
7695-
if (! o.cache) {
7695+
if (!o.cache) {
76967696
this.anchors.removeData( "cache.tabs" );
76977697
}
76987698

snippets/csharp/System.IdentityModel.Tokens/IssuerNameRegistry/Overview/scripts/microsoftajax.debug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,7 +2430,7 @@ Date._parse = function Date$_parse(value, cultureInfo, args) {
24302430
if (date) return date;
24312431
}
24322432
}
2433-
if (! custom) {
2433+
if (!custom) {
24342434
formats = cultureInfo._getDateTimeFormats();
24352435
for (i = 0, l = formats.length; i < l; i++) {
24362436
date = Date._parseExact(value, formats[i], cultureInfo);
@@ -3141,7 +3141,7 @@ Sys.CultureInfo = function Sys$CultureInfo(name, numberFormat, dateTimeFormat) {
31413141
this.dateTimeFormat = dateTimeFormat;
31423142
}
31433143
function Sys$CultureInfo$_getDateTimeFormats() {
3144-
if (! this._dateTimeFormats) {
3144+
if (!this._dateTimeFormats) {
31453145
var dtf = this.dateTimeFormat;
31463146
this._dateTimeFormats =
31473147
[ dtf.MonthDayPattern,

0 commit comments

Comments
 (0)