Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@szakarias
Copy link
Contributor

No description provided.

Copy link
Contributor

@mravn-google mravn-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Hixie
Copy link
Contributor

Hixie commented Jun 2, 2017

cc @abarth who is more familiar with this code

@Hixie
Copy link
Contributor

Hixie commented Jun 2, 2017

Also cc @jason-simmons who was in this code recently.


void DefaultRouteName(Dart_NativeArguments args) {
std::string routeName = UIDartState::Current()->window()->client()->DefaultRouteName();
Dart_SetReturnValue(args, Dart_NewStringFromCString(routeName.c_str()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just call: Dart_SetReturnValue(args, StdStringToDart(routeName));

if (!initial_route_.empty()) {
return initial_route_;
}
return std::string("/");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for the explicit call to std::string. The compiler will add it for you.

@abarth
Copy link
Contributor

abarth commented Jun 2, 2017

LGTM

@szakarias szakarias merged commit f37aafd into flutter:master Jun 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants